Sha256: 0a6c43d526400058590bedc4870bc413a80e860d225ab453190b836bbcc28c8d

Contents?: true

Size: 426 Bytes

Versions: 9

Compression:

Stored size: 426 Bytes

Contents

require 'active_record'
require 'active_support/inflector'

$LOAD_PATH.unshift(File.dirname(__FILE__))

module ActsAsVotable

  if defined?(ActiveRecord::Base)
    require 'acts_as_votable/extenders/votable'
    require 'acts_as_votable/extenders/voter'
    require 'acts_as_votable/vote'
    ActiveRecord::Base.extend ActsAsVotable::Extenders::Votable
    ActiveRecord::Base.extend ActsAsVotable::Extenders::Voter
  end

end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
acts_as_votable-0.5.0 lib/acts_as_votable.rb
acts_as_votable-0.4.0 lib/acts_as_votable.rb
jy-acts_as_votable-0.3.1 lib/acts_as_votable.rb
acts_as_votable-0.3.1 lib/acts_as_votable.rb
acts_as_votable-0.3.0 lib/acts_as_votable.rb
acts_as_votable-0.2.0 lib/acts_as_votable.rb
acts_as_votable-0.1.3 lib/acts_as_votable.rb
acts_as_votable-0.1.2 lib/acts_as_votable.rb
acts_as_votable-0.1.1 lib/acts_as_votable.rb