Sha256: 79893e5420ab594f8737a07b465126fece88a01838780086f705827135571099

Contents?: true

Size: 694 Bytes

Versions: 14

Compression:

Stored size: 694 Bytes

Contents

require 'require_all'
require 'active_support/inflector'
require_all File.dirname(__FILE__) + '/strategies'

 

module RoleModels::ActiveRecord
  include RoleModels::Base
  orm_name :active_record
end

 
module ActiveRecord
  class Base
    include RoleModels::ActiveRecord
  end
end


class User
  include RoleModels::Generic
  
  attr_accessor :roles_mask
  role_strategy :roles_mask
end

class User
  include RoleModels::Generic::RolesMask
  attr_accessor :roles_mask
end

class User < ActiveRecord::Base
  role_strategy :roles_mask
end

class User
  include MongoMapper::Document
  
  role_strategy :roles_mask
end

class User
  include Mongoid::Document
  
  role_strategy :roles_mask
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
roles_active_record-0.4.0 sandbox/model_base.rb
roles_active_record-0.3.6 sandbox/model_base.rb
roles_active_record-0.3.5 sandbox/model_base.rb
roles_active_record-0.3.4 sandbox/model_base.rb
roles_active_record-0.3.3 sandbox/model_base.rb
roles_active_record-0.3.2 sandbox/model_base.rb
roles_active_record-0.3.1 sandbox/model_base.rb
roles_active_record-0.2.5 sandbox/model_base.rb
roles_active_record-0.2.4 sandbox/model_base.rb
roles_active_record-0.2.3 sandbox/model_base.rb
roles_active_record-0.2.2 sandbox/model_base.rb
roles_active_record-0.2.1 sandbox/model_base.rb
roles_active_record-0.2.0 sandbox/model_base.rb
roles_active_record-0.1.0 sandbox/model_base.rb