Sha256: 08c04aa302e4865e0511ee648425cc05fc95adf5b0d08dc1a485da853a5e1f68
Contents?: true
Size: 269 Bytes
Versions: 3
Compression:
Stored size: 269 Bytes
Contents
require 'role' if Role.table_exists? require 'action_filters' ActiveRecord::Base.send(:include, ActiveRecord::Aggregations::HasRoles) ActionController::Base.send(:extend, Roles::ActionFilters) else ActiveRecord::Base.class_eval { def self.has_roles; end } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
objectreload-roles-0.1.2 | init.rb |
objectreload-roles-0.1.1 | init.rb |
objectreload-roles-0.1.0 | init.rb |