Sha256: 7f63da13569f0a424af487bccc9934c317a2648c825dce5ff8b22c3382eb0be0

Contents?: true

Size: 569 Bytes

Versions: 6

Compression:

Stored size: 569 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

require 'acts_as_votable/extenders/controller'
ActiveSupport.on_load(:action_controller) do
  include ActsAsVotable::Extenders::Controller
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
acts_as_votable-0.10.0 lib/acts_as_votable.rb
acts_as_votable-0.9.0 lib/acts_as_votable.rb
acts_as_votable-0.8.0 lib/acts_as_votable.rb
acts_as_votable-0.7.1 lib/acts_as_votable.rb
acts_as_votable-0.7.0 lib/acts_as_votable.rb
acts_as_votable-0.6.0 lib/acts_as_votable.rb