Sha256: 6b9782a85bf41ca304c155623d3e8e023d9966c798a70322eef790609dc2e41a
Contents?: true
Size: 997 Bytes
Versions: 1
Compression:
Stored size: 997 Bytes
Contents
RoleBasedSecurity =================== RoleBasedSecurity is a gem that implements role based security for authlogic. * The gem supports ruby 1.9.x & rails 3.x * The gem allows to create role based security for authlogic * The gem allows ... This gem assumes that * You are using authlogic and application has current_user method * The name of the user model is User * Quick Start ======= In your Gemfile: gem "role_based_security", ">= 0.5.0" In your controller: require_role "admin" In your user model: has_many :user_roles, :dependent => :destroy If you wish: -Use config/initiaizers to configure options for this gem -Run ruby script/rails generate role_based_security to gen migration, models and etc. Installation ======= * Type 'gem install --local role_based_security' with root account if you have installed RubyGems. Example ======= Example goes here. Copyright (c) 2011 arufanov, released under the MIT license.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
role_based_security-0.5.0 | README |