lockdown 0.9.3 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -65,7 +65,7 @@ module Lockdown
65
65
 
66
66
  return true if current_user_is_admin?
67
67
 
68
- method ||= request.method
68
+ method ||= (params[:method] || request.method)
69
69
 
70
70
  url_parts = URI::split(url.strip)
71
71
 
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.3'
6
+ VERSION = '0.9.5'
7
7
 
8
8
  # Returns the version string for the library.
9
9
  def self.version
@@ -55,7 +55,7 @@ class LockdownGenerator < Rails::Generator::Base
55
55
  @m.directory @lib_path
56
56
 
57
57
  unless options[:skip_rules]
58
- @m.template "lib/lockdown/session.rb", "lib/lockdown/session.rb"
58
+ @m.file "lib/lockdown/README", "lib/lockdown/README"
59
59
  @m.file "lib/lockdown/init.rb", "lib/lockdown/init.rb"
60
60
  end
61
61
 
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.3
4
+ version: 0.9.5
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-03-25 00:00:00 -04:00
12
+ date: 2009-03-26 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency