noodall-ui 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -61,7 +61,15 @@ module Noodall
61
61
 
62
62
  def permission_denied
63
63
  flash[:error] = "You do not have permission to do that"
64
- redirect_to root_url
64
+
65
+ case
66
+ when respond_to?('permission_denied_url')
67
+ redirect_to permission_denied_url
68
+ when respond_to?('permission_denied_path')
69
+ redirect_to permission_denied_path
70
+ else
71
+ redirect_to root_url
72
+ end
65
73
  end
66
74
 
67
75
  def can_view?(node)
@@ -1,5 +1,5 @@
1
1
  module Noodall
2
2
  module UI
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noodall-ui
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease:
4
+ hash: 23
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
9
+ - 2
10
+ version: 0.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steve England
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-14 00:00:00 +00:00
18
+ date: 2011-03-16 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -30,10 +30,10 @@ dependencies:
30
30
  - 6
31
31
  - 0
32
32
  version: 0.6.0
33
+ type: :runtime
33
34
  name: noodall-core
34
35
  prerelease: false
35
36
  version_requirements: *id001
36
- type: :runtime
37
37
  - !ruby/object:Gem::Dependency
38
38
  requirement: &id002 !ruby/object:Gem::Requirement
39
39
  none: false
@@ -46,27 +46,26 @@ dependencies:
46
46
  - 0
47
47
  - 6
48
48
  version: 0.0.6
49
+ type: :runtime
49
50
  name: thoughtbot-sortable_table
50
51
  prerelease: false
51
52
  version_requirements: *id002
52
- type: :runtime
53
53
  - !ruby/object:Gem::Dependency
54
54
  requirement: &id003 !ruby/object:Gem::Requirement
55
55
  none: false
56
56
  requirements:
57
57
  - - ~>
58
58
  - !ruby/object:Gem::Version
59
- hash: 1923831917
59
+ hash: 270495401
60
60
  segments:
61
61
  - 3
62
62
  - 0
63
- - pre
64
- - 2
63
+ - pre2
65
64
  version: 3.0.pre2
65
+ type: :runtime
66
66
  name: will_paginate
67
67
  prerelease: false
68
68
  version_requirements: *id003
69
- type: :runtime
70
69
  - !ruby/object:Gem::Dependency
71
70
  requirement: &id004 !ruby/object:Gem::Requirement
72
71
  none: false
@@ -77,10 +76,10 @@ dependencies:
77
76
  segments:
78
77
  - 0
79
78
  version: "0"
79
+ type: :runtime
80
80
  name: dynamic_form
81
81
  prerelease: false
82
82
  version_requirements: *id004
83
- type: :runtime
84
83
  - !ruby/object:Gem::Dependency
85
84
  requirement: &id005 !ruby/object:Gem::Requirement
86
85
  none: false
@@ -93,10 +92,10 @@ dependencies:
93
92
  - 0
94
93
  - 0
95
94
  version: 1.0.0
95
+ type: :development
96
96
  name: bundler
97
97
  prerelease: false
98
98
  version_requirements: *id005
99
- type: :development
100
99
  description: Noodall Rails User Interface Engine. Requires Noodall Core
101
100
  email:
102
101
  - steve@wearebeef.co.uk
@@ -681,7 +680,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
681
680
  requirements: []
682
681
 
683
682
  rubyforge_project:
684
- rubygems_version: 1.4.1
683
+ rubygems_version: 1.3.7
685
684
  signing_key:
686
685
  specification_version: 3
687
686
  summary: Noodall Rails User Interface