Sha256: caaff9776abbae3373b737a9f35bf9e2c1172e2586cc629ae9e00c586e0b79e1
Contents?: true
Size: 975 Bytes
Versions: 11
Compression:
Stored size: 975 Bytes
Contents
class Voter < ActiveRecord::Base rcrm_acts_as_voter end class NotVoter < ActiveRecord::Base end class Votable < ActiveRecord::Base rcrm_acts_as_votable validates_presence_of :name end class VotableVoter < ActiveRecord::Base rcrm_acts_as_votable rcrm_acts_as_voter end class StiVotable < ActiveRecord::Base rcrm_acts_as_votable end class ChildOfStiVotable < StiVotable end class StiNotVotable < ActiveRecord::Base validates_presence_of :name end class VotableChildOfStiNotVotable < StiNotVotable rcrm_acts_as_votable end class NotVotable < ActiveRecord::Base end class VotableCache < ActiveRecord::Base rcrm_acts_as_votable validates_presence_of :name end class ABoringClass def self.hw 'hello world' end end # def clean_database # models = [ActsAsVotable::Vote, Voter, NotVoter, Votable, NotVotable, VotableCache] # models.each do |model| # ActiveRecord::Base.connection.execute "DELETE FROM #{model.table_name}" # end # end
Version data entries
11 entries across 11 versions & 1 rubygems