lockdown 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/lockdown.rb CHANGED
@@ -3,7 +3,7 @@ require File.join(File.dirname(__FILE__), "lockdown", "helper")
3
3
  module Lockdown
4
4
  extend Lockdown::Helper
5
5
 
6
- VERSION = '0.9.2'
6
+ VERSION = '0.9.3'
7
7
 
8
8
  # Returns the version string for the library.
9
9
  def self.version
@@ -5,12 +5,15 @@
5
5
  #
6
6
  #*** MUST add call to add_lockdown_session_values to your login method
7
7
  #
8
- # # This method uses the current_user method.
9
- # add_lockdown_session_values
10
- #
11
8
  #*** MAY NEED to add call to reset_lockdown_session to your logout method.
12
9
  # ** Not needed if your authentication system resets the session
13
10
  #
11
+ # Definitely need to use the user_group and permission models. The lockdown
12
+ # generator will provide those for you. Just add the following to your user
13
+ # model:
14
+ # has_and_belongs_to_many :user_groups
15
+ #
16
+ # That's it!
14
17
  #
15
18
  #
16
19
  # ~~~~Method Descriptions~~~~
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Stone