active_scaffold_vho 3.0.28 → 3.0.29

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,9 +2,6 @@ module ActiveScaffold::Actions
2
2
  module Create
3
3
  def self.included(base)
4
4
  base.before_filter :create_authorized_filter, :only => [:new, :create]
5
- base.verify :method => :post,
6
- :only => :create,
7
- :redirect_to => { :action => :index }
8
5
  base.helper_method :create_columns
9
6
  end
10
7
 
@@ -83,7 +83,7 @@ module ActiveScaffold::Actions
83
83
 
84
84
  def beginning_of_chain
85
85
  if nested? && nested.association && nested.association.collection?
86
- nested.parent_scope.send(nested.association.name).where("")
86
+ nested.parent_scope.send(nested.association.name)
87
87
  elsif nested? && nested.scope
88
88
  nested.parent_scope.send(nested.scope)
89
89
  else
@@ -123,9 +123,6 @@ module ActiveScaffold::Actions::Nested
123
123
 
124
124
  def self.included(base)
125
125
  super
126
- base.verify :method => :post,
127
- :only => :add_existing,
128
- :redirect_to => { :action => :index }
129
126
  end
130
127
 
131
128
  def new_existing
@@ -2,9 +2,6 @@ module ActiveScaffold::Actions
2
2
  module Update
3
3
  def self.included(base)
4
4
  base.before_filter :update_authorized_filter, :only => [:edit, :update]
5
- base.verify :method => [:post, :put],
6
- :only => :update,
7
- :redirect_to => { :action => :index }
8
5
  base.helper_method :update_refresh_list?
9
6
  base.helper_method :update_columns
10
7
  end
@@ -267,6 +267,7 @@ module ActiveScaffold
267
267
  options[:count_includes] ||= full_includes unless search_conditions.nil?
268
268
 
269
269
  klass = beginning_of_chain
270
+ klass = klass.where("") if klass.is_a?(Array)
270
271
 
271
272
  # create a general-use options array that's compatible with Rails finders
272
273
  finder_options = { :order => options[:sorting].try(:clause),
@@ -2,7 +2,7 @@ module ActiveScaffold
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- PATCH = 28
5
+ PATCH = 29
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold_vho
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 28
10
- version: 3.0.28
9
+ - 29
10
+ version: 3.0.29
11
11
  platform: ruby
12
12
  authors:
13
13
  - Many, see README
@@ -18,6 +18,8 @@ cert_chain: []
18
18
  date: 2013-01-28 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
+ name: shoulda
22
+ prerelease: false
21
23
  requirement: &id001 !ruby/object:Gem::Requirement
22
24
  none: false
23
25
  requirements:
@@ -28,10 +30,10 @@ dependencies:
28
30
  - 0
29
31
  version: "0"
30
32
  type: :development
31
- name: shoulda
32
33
  version_requirements: *id001
33
- prerelease: false
34
34
  - !ruby/object:Gem::Dependency
35
+ name: bundler
36
+ prerelease: false
35
37
  requirement: &id002 !ruby/object:Gem::Requirement
36
38
  none: false
37
39
  requirements:
@@ -44,10 +46,10 @@ dependencies:
44
46
  - 0
45
47
  version: 1.0.0
46
48
  type: :development
47
- name: bundler
48
49
  version_requirements: *id002
49
- prerelease: false
50
50
  - !ruby/object:Gem::Dependency
51
+ name: rcov
52
+ prerelease: false
51
53
  requirement: &id003 !ruby/object:Gem::Requirement
52
54
  none: false
53
55
  requirements:
@@ -58,10 +60,10 @@ dependencies:
58
60
  - 0
59
61
  version: "0"
60
62
  type: :development
61
- name: rcov
62
63
  version_requirements: *id003
63
- prerelease: false
64
64
  - !ruby/object:Gem::Dependency
65
+ name: rails
66
+ prerelease: false
65
67
  requirement: &id004 !ruby/object:Gem::Requirement
66
68
  none: false
67
69
  requirements:
@@ -74,10 +76,10 @@ dependencies:
74
76
  - 0
75
77
  version: 3.0.0
76
78
  type: :runtime
77
- name: rails
78
79
  version_requirements: *id004
79
- prerelease: false
80
80
  - !ruby/object:Gem::Dependency
81
+ name: kaminari
82
+ prerelease: false
81
83
  requirement: &id005 !ruby/object:Gem::Requirement
82
84
  none: false
83
85
  requirements:
@@ -88,9 +90,7 @@ dependencies:
88
90
  - 0
89
91
  version: "0"
90
92
  type: :runtime
91
- name: kaminari
92
93
  version_requirements: *id005
93
- prerelease: false
94
94
  description: Save time and headaches, and create a more easily maintainable set of pages, with ActiveScaffold. ActiveScaffold handles all your CRUD (create, read, update, delete) user interface needs, leaving you more time to focus on more challenging (and interesting!) problems.
95
95
  email: activescaffold@googlegroups.com
96
96
  executables: []