role_authorization 0.1.3 → 0.1.4

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.
data/Gemfile.lock ADDED
@@ -0,0 +1,26 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ role_authorization (0.1.3)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.1.2)
10
+ rr (1.0.2)
11
+ rspec (2.5.0)
12
+ rspec-core (~> 2.5.0)
13
+ rspec-expectations (~> 2.5.0)
14
+ rspec-mocks (~> 2.5.0)
15
+ rspec-core (2.5.1)
16
+ rspec-expectations (2.5.0)
17
+ diff-lcs (~> 1.1.2)
18
+ rspec-mocks (2.5.0)
19
+
20
+ PLATFORMS
21
+ ruby
22
+
23
+ DEPENDENCIES
24
+ role_authorization!
25
+ rr
26
+ rspec
@@ -101,7 +101,7 @@ module RoleAuthorization
101
101
  return authorized_action?(self, hash[:controller], hash[:action].to_sym, hash[:id]) if hash
102
102
  rescue Exception => e
103
103
  Rails.logger.error e.inspect
104
- Rails.logger.error e.backtrace
104
+ e.backtrace.each {|line| Rails.logger.error line }
105
105
  # continue on
106
106
  end
107
107
 
@@ -17,7 +17,7 @@ module RoleAuthorization
17
17
  def form_for_secured(record_or_name_or_array, *args, &proc)
18
18
  options = args.last.is_a?(Hash) ? args.last : {}
19
19
 
20
- url = url_for(options[:url])
20
+ url = url_for(options[:url] || record_or_name_or_array)
21
21
 
22
22
  method = (options[:html] && options[:html].has_key?(:method)) ? options[:html][:method] : :post
23
23
 
@@ -1,3 +1,3 @@
1
1
  module RoleAuthorization
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: role_authorization
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.3
5
+ version: 0.1.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - John 'asceth' Long
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-24 00:00:00 -05:00
13
+ date: 2011-02-28 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -50,6 +50,7 @@ files:
50
50
  - .rspec
51
51
  - .rvmrc
52
52
  - Gemfile
53
+ - Gemfile.lock
53
54
  - LICENSE
54
55
  - README.md
55
56
  - Rakefile