app/components/marty/api_config_view.rb in marty-1.0.35 vs app/components/marty/api_config_view.rb in marty-1.0.36
- old
+ new
@@ -11,11 +11,13 @@
c.attributes = [
:script,
:node,
:attr,
:logged,
- :validated,
+ :input_validated,
+ :output_validated,
+ :strict_validate,
:created_at,
:updated_at,
]
c.paging = :pageination
c.editing = :in_form
@@ -45,16 +47,16 @@
attribute a do |c|
c.width = 150
c.setter = lambda { |r, v| r.send("#{a}=", v.blank? ? nil : v) }
end
end
- attribute :logged do |c|
- c.width = 100
+ [:logged, :input_validated, :output_validated, :strict_validate].each do
+ |a|
+ attribute a do |c|
+ c.width = 110
+ end
end
- attribute :validated do |c|
- c.width = 110
- end
[:created_at, :updated_at].each do |a|
attribute a do |c|
c.read_only = true
end
end
@@ -62,10 +64,12 @@
[
:script,
:node,
:attr,
:logged,
- :validated,
+ :input_validated,
+ :output_validated,
+ :strict_validate,
]
end
end
ApiConfigView = Marty::ApiConfigView