Sha256: 7c6129a428ffbec3026174a709c931b242243c5d29972b36721021606fe62bee
Contents?: true
Size: 826 Bytes
Versions: 1
Compression:
Stored size: 826 Bytes
Contents
require File.join(%w{declarative_authorization helper}) require File.join(%w{declarative_authorization in_controller}) if defined?(ActiveRecord) require File.join(%w{declarative_authorization in_model}) require File.join(%w{declarative_authorization obligation_scope}) end min_rails_version = '4.2.5.2' if Rails::VERSION::STRING < min_rails_version raise "ae_declarative_authorization requires Rails #{min_rails_version}. You are using #{Rails::VERSION::STRING}." end require File.join(%w{declarative_authorization railsengine}) if defined?(::Rails::Engine) ActionController::Base.send :include, Authorization::AuthorizationInController ActionController::Base.helper Authorization::AuthorizationHelper ActiveRecord::Base.send :include, Authorization::AuthorizationInModel if defined?(ActiveRecord)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ae_declarative_authorization-0.7.1 | lib/declarative_authorization.rb |