objectreload-permissions 0.1.1 → 0.1.2

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/VERSION +1 -1
  2. data/lib/require_permissions.rb +1 -1
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -19,7 +19,7 @@ module RequirePermissions
19
19
  failure = options.delete(:failure)
20
20
  failure ||= lambda {
21
21
  if redirect
22
- flash[:error] = "You were not authorised to see that page".t
22
+ flash[:error] = t("permissions.not_authorised_error") #You were not authorised to see that page
23
23
  redirect_to case redirect
24
24
  when Symbol then self.send(redirect)
25
25
  when Proc then instance_eval &redirect
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: objectreload-permissions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Drozdzynski
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-12-01 00:00:00 +00:00
13
+ date: 2010-01-07 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies: []
16
16
 
@@ -63,5 +63,5 @@ signing_key:
63
63
  specification_version: 3
64
64
  summary: Simple way to add permissions to controllers.
65
65
  test_files:
66
- - test/require_permissions_test.rb
67
66
  - test/test_helper.rb
67
+ - test/require_permissions_test.rb