inline_forms 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/app/helpers/{inline_form_helper.rb → inline_forms_helper.rb} +2 -1
- data/inline_forms.gemspec +3 -3
- data/lib/inline_forms.rb +9 -19
- metadata +6 -6
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.2.0
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
puts 'inline forms helper loaded'
|
|
2
|
+
module InlineFormsHelper
|
|
2
3
|
# display the forms from an array of attributes
|
|
3
4
|
def inline_form_display(object, attributes, action=:show)
|
|
4
5
|
attributes = [ attributes ] if not attributes[0].is_a?(Array) # make sure we have an array of arrays
|
data/inline_forms.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{inline_forms}
|
|
8
|
-
s.version = "0.
|
|
8
|
+
s.version = "0.2.0"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Ace Suares"]
|
|
12
|
-
s.date = %q{2011-01-
|
|
12
|
+
s.date = %q{2011-01-28}
|
|
13
13
|
s.description = %q{Inline Forms aims to ease the setup of forms that provide inline editing. The field list can be specified in the model.}
|
|
14
14
|
s.email = %q{ace@suares.an}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
|
|
|
25
25
|
"Rakefile",
|
|
26
26
|
"VERSION",
|
|
27
27
|
"app/controllers/inline_forms_controller.rb",
|
|
28
|
-
"app/helpers/
|
|
28
|
+
"app/helpers/inline_forms_helper.rb",
|
|
29
29
|
"app/models/geo_code_curacao.rb",
|
|
30
30
|
"app/models/inline_form.rb",
|
|
31
31
|
"app/views/inline_forms/_subform.html.erb",
|
data/lib/inline_forms.rb
CHANGED
|
@@ -1,20 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
extend ActiveSupport::Concern
|
|
3
|
-
|
|
4
|
-
module ClassMethods
|
|
5
|
-
def find_by_tags()
|
|
6
|
-
raise 'hello'
|
|
7
|
-
end
|
|
8
|
-
end
|
|
1
|
+
puts 'loading inline_forms...'
|
|
9
2
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
include InlineForms
|
|
19
|
-
end
|
|
20
|
-
|
|
3
|
+
module InlineForms
|
|
4
|
+
class InlineFormsEngine < Rails::Engine
|
|
5
|
+
initializer 'inline_forms.helper' do |app|
|
|
6
|
+
ActionView::Base.send :include, InlineFormsHelper
|
|
7
|
+
end
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
# http://www.ruby-forum.com/topic/211017#927932
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: inline_forms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 23
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
version: 0.
|
|
8
|
+
- 2
|
|
9
|
+
- 0
|
|
10
|
+
version: 0.2.0
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Ace Suares
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-01-
|
|
18
|
+
date: 2011-01-28 00:00:00 -04:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -96,7 +96,7 @@ files:
|
|
|
96
96
|
- Rakefile
|
|
97
97
|
- VERSION
|
|
98
98
|
- app/controllers/inline_forms_controller.rb
|
|
99
|
-
- app/helpers/
|
|
99
|
+
- app/helpers/inline_forms_helper.rb
|
|
100
100
|
- app/models/geo_code_curacao.rb
|
|
101
101
|
- app/models/inline_form.rb
|
|
102
102
|
- app/views/inline_forms/_subform.html.erb
|