lockdown 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.6.2 2008-12-01
2
+ * Fixed: Made call to action_methods instead of calculating controller actions
3
+
1
4
  == 0.6.1 2008-11-21
2
5
  * Fixed: Named routes were not being honored in link_to
3
6
 
@@ -4,7 +4,11 @@ module Lockdown
4
4
  module Controller
5
5
 
6
6
  def available_actions(klass)
7
- klass.public_instance_methods - klass.hidden_actions
7
+ if klass.respond_to?(:action_methods)
8
+ klass.action_methods
9
+ else
10
+ klass.public_instance_methods - klass.hidden_actions
11
+ end
8
12
  end
9
13
 
10
14
  def controller_name(klass)
@@ -2,7 +2,7 @@ module Lockdown #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 6
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
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.6.1
4
+ version: 0.6.2
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: 2008-11-21 00:00:00 -05:00
12
+ date: 2008-12-01 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  requirements: []
160
160
 
161
161
  rubyforge_project: lockdown
162
- rubygems_version: 1.2.0
162
+ rubygems_version: 1.3.1
163
163
  signing_key:
164
164
  specification_version: 2
165
165
  summary: Lockdown is a authentication/authorization system for RubyOnRails