Sha256: 983ddb2e6fe2d6c7be15dc27e88159dc8c21c5f8aa1e0e708fb4cff64112fcc6

Contents?: true

Size: 268 Bytes

Versions: 2

Compression:

Stored size: 268 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

2 entries across 2 versions & 1 rubygems

Version Path
objectreload-roles-0.1.2 lib/roles.rb
objectreload-roles-0.1.1 lib/roles.rb