# 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