lrd_view_tools 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/app/helpers/lrd_form_helper.rb +4 -4
- metadata +6 -8
@@ -112,8 +112,8 @@ module LRD
|
|
112
112
|
# # => <label> </label>
|
113
113
|
# # => <input type='submit' name='[]' value='Click Me' />
|
114
114
|
# # => </div>
|
115
|
-
def unlabeled_submit(text = nil)
|
116
|
-
labeled_input(nil, nil, :type => :submit, :submit_text => text)
|
115
|
+
def unlabeled_submit(text = nil, options={})
|
116
|
+
labeled_input(nil, nil, options.merge!({:type => :submit, :submit_text => text}))
|
117
117
|
end
|
118
118
|
end
|
119
119
|
end
|
@@ -156,8 +156,8 @@ module LRD::FormBuilder
|
|
156
156
|
def labeled_input(method, options = {}, &block)
|
157
157
|
@template.labeled_input(@object_name, method, objectify_options(options), &block)
|
158
158
|
end
|
159
|
-
def unlabeled_submit(text = nil)
|
160
|
-
@template.unlabeled_submit(text)
|
159
|
+
def unlabeled_submit(text = nil, options={})
|
160
|
+
@template.unlabeled_submit(text, options)
|
161
161
|
end
|
162
162
|
end
|
163
163
|
|
metadata
CHANGED
@@ -1,22 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lrd_view_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
|
-
- Evan Dorn
|
13
|
+
- Evan Dorn
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
19
|
-
default_executable:
|
18
|
+
date: 2012-03-06 00:00:00 Z
|
20
19
|
dependencies: []
|
21
20
|
|
22
21
|
description: View helpers and defaults for LRD projects. Compatible with Rails 3.x. Don't even bother trying with Rails 2.x or before.'
|
@@ -40,7 +39,6 @@ files:
|
|
40
39
|
- spec/spec.opts
|
41
40
|
- spec/spec_helper.rb
|
42
41
|
- spec/unlabeled_submit_spec.rb
|
43
|
-
has_rdoc: true
|
44
42
|
homepage: http://LRDesign.com
|
45
43
|
licenses:
|
46
44
|
- MIT
|
@@ -70,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
68
|
requirements: []
|
71
69
|
|
72
70
|
rubyforge_project:
|
73
|
-
rubygems_version: 1.
|
71
|
+
rubygems_version: 1.8.10
|
74
72
|
signing_key:
|
75
73
|
specification_version: 3
|
76
74
|
summary: View helpers and defaults for LRD projects.
|