Sha256: efb65d3d109be7a23206eab86774da04cb6ecf078be6cfa9b48fcd51876fbf81
Contents?: true
Size: 866 Bytes
Versions: 3
Compression:
Stored size: 866 Bytes
Contents
require File.join(%w{declarative_authorization rails_legacy}) 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 = "2.1.0" if Rails::VERSION::STRING < min_rails_version raise "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
3 entries across 3 versions & 2 rubygems