Sha256: 788b7bd6956b97e8f1c40bf1ffa5c03b81c3221bba7f9d038ebfb87cf3a2c623
Contents?: true
Size: 696 Bytes
Versions: 3
Compression:
Stored size: 696 Bytes
Contents
require File.join(%w{declarative_authorization helper}) if defined?(ActionController) require File.dirname(__FILE__) + '/declarative_authorization/controller/rails.rb' end if defined?(ActiveRecord) require File.join(%w{declarative_authorization in_model}) require File.join(%w{declarative_authorization obligation_scope}) end require File.join(%w{declarative_authorization railsengine}) if defined?(::Rails::Engine) if defined?(ActionController) ActionController::Base.send :include, Authorization::Controller::Rails ActionController::Base.helper Authorization::AuthorizationHelper end ActiveRecord::Base.send :include, Authorization::AuthorizationInModel if defined?(ActiveRecord)
Version data entries
3 entries across 3 versions & 1 rubygems