lockdown 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/lockdown/rules.rb +8 -3
  2. data/lib/lockdown.rb +1 -1
  3. metadata +2 -2
@@ -31,10 +31,15 @@ module Lockdown
31
31
  :successful_login_path => "/",
32
32
  :subdirectory => nil,
33
33
  :skip_db_sync_in => ["test"],
34
- :link_separator => ' | ',
35
- :user_group_model => ::UserGroup,
36
- :user_model => ::User
34
+ :link_separator => ' | '
37
35
  }
36
+
37
+ begin
38
+ @options[:user_group_model] = ::UserGroup
39
+ @options[:user_model] = ::User
40
+ rescue NameError
41
+ end
42
+
38
43
  end
39
44
 
40
45
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 = '1.1.0'
6
+ VERSION = '1.1.1'
7
7
 
8
8
  # Returns the version string for the library.
9
9
  def self.version
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: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Stone
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-02 00:00:00 -04:00
12
+ date: 2009-08-03 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency