Sha256: aa25036a2a69f1afc281a5f27a0cde5b905653587930613a5d97a7f8196c9c7a
Contents?: true
Size: 599 Bytes
Versions: 7
Compression:
Stored size: 599 Bytes
Contents
# frozen_string_literal: true 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
7 entries across 7 versions & 1 rubygems