active_scaffold_vho 3.0.15 → 3.0.16
Sign up to get free protection for your applications and to get access to all the features.
data/active_scaffold_vho.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{active_scaffold_vho}
|
8
|
-
s.version = "3.0.
|
8
|
+
s.version = "3.0.16"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Many, see README"]
|
12
|
-
s.date = %q{2011-03-
|
12
|
+
s.date = %q{2011-03-07}
|
13
13
|
s.description = %q{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.}
|
14
14
|
s.email = %q{activescaffold@googlegroups.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -78,7 +78,7 @@ module ActiveScaffold::Actions
|
|
78
78
|
update_save
|
79
79
|
end
|
80
80
|
|
81
|
-
def update_save
|
81
|
+
def update_save(options = {})
|
82
82
|
begin
|
83
83
|
active_scaffold_config.model.transaction do
|
84
84
|
@record = update_record_from_params(@record, active_scaffold_config.update.columns, params[:record]) unless options[:no_record_param_update]
|
@@ -136,7 +136,7 @@ module ActiveScaffold
|
|
136
136
|
end
|
137
137
|
|
138
138
|
def active_scaffold_translated_option(column, text, value = nil)
|
139
|
-
value
|
139
|
+
value = text if value.nil?
|
140
140
|
[(text.is_a?(Symbol) ? column.active_record_class.human_attribute_name(text) : text), value]
|
141
141
|
end
|
142
142
|
|
@@ -247,7 +247,7 @@ module ActiveScaffold
|
|
247
247
|
def inplace_edit?(record, column)
|
248
248
|
if column.inplace_edit
|
249
249
|
editable = controller.send(:update_authorized?, record) if controller.respond_to?(:update_authorized?)
|
250
|
-
editable = record.authorized_for?(:
|
250
|
+
editable = record.authorized_for?(:crud_type => :update, :column => column.name) if editable.nil? || editable == true
|
251
251
|
editable
|
252
252
|
end
|
253
253
|
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:
|
4
|
+
hash: 39
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
9
|
+
- 16
|
10
|
+
version: 3.0.16
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Many, see README
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-07 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|