This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module B | |
def rara | |
@rara ||= Array.new | |
end | |
def rara=(value) | |
@rara = value | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
263 def create_links | |
264 old_links = self.links.clone | |
265 new_links = self.content.scan(LINK_REGEXP) | |
266 new_links.each do |link_result| | |
267 if current_link = create_or_update_link link_result.first | |
268 old_links.delete(current_link) | |
269 end | |
270 end | |
271 | |
272 old_links.each do |old_link| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Campaign < ActiveRecord::Base | |
belongs_to :user | |
#scope :active, where(:active => true) | |
#scope :not_yet_active, where(:active => false) | |
validates :goal, :presence => true | |
validates :url, :presence => true | |
validates :name_or_twitter, :presence => true | |
attr_accessor :complete_tweet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# An application template for Rails 3 | |
gem "factory_girl_rails", :group => [:development, :test] | |
gem "factory_girl_generator", :group => [:development, :test] | |
gem "rspec", :group => [:development, :test] | |
gem "rspec-rails", :group => [:development, :test] | |
gem "haml" | |
gem "haml-rails" | |
gem "compass" | |
gem "taps" | |
gem "heroku", :group => :development |