cambium 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76f6a0f62b15e34ce43ad75bd755cc2ac5074363
|
4
|
+
data.tar.gz: 5cd10be0dbc8590dd039d95cbd2e7a1dd3eab3a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7a6aa8263c90cbfd7ab1ee641cec7012c807f588a41f4072e188d80e52f44b7876a5ccfe899156026df68e2956c50733071daa2d9d945a4dbb2e1486660c7fe
|
7
|
+
data.tar.gz: 84fe86a884806e674a98149f99d09c90616f06e4427d34c854c9381be33fae22e3c8f4506abef9b1c917b534fdf11e5b1d2879a9d5bcd88a3c570373fed159a9
|
@@ -105,13 +105,15 @@ module Cambium
|
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
108
|
-
def cambium_form(obj, fields)
|
108
|
+
def cambium_form(obj, fields, url=nil)
|
109
109
|
content_tag(:section, :class => 'form') do
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
110
|
+
if url.nil?
|
111
|
+
case action_name
|
112
|
+
when 'edit', 'update'
|
113
|
+
url = cambium_route(:show, obj)
|
114
|
+
else
|
115
|
+
url = cambium_route(:index, obj)
|
116
|
+
end
|
115
117
|
end
|
116
118
|
simple_form_for obj, :url => url do |f|
|
117
119
|
cambium_form_fields(f, obj, fields)
|
data/lib/cambium/version.rb
CHANGED