inline_forms 1.4.8 → 1.4.9
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/inline_forms +1 -1
- data/lib/app/views/inline_forms/_list.html.erb +1 -1
- data/lib/inline_forms/version.rb +1 -1
- metadata +2 -2
data/bin/inline_forms
CHANGED
@@ -92,7 +92,7 @@ module InlineForms
|
|
92
92
|
|
93
93
|
|
94
94
|
say "- Creating and trusting .rvmrc..."
|
95
|
-
ruby_version = %x[rvm current]
|
95
|
+
ruby_version = (%x[rvm current]).gsub(/@.*/,'')
|
96
96
|
create_file "#{app_name}/.rvmrc", "rvm use #{ruby_version.chop}@#{app_name} --create"
|
97
97
|
say ("- " + %x[cd #{app_name} && rvm rvmrc trust .rvmrc]).chop
|
98
98
|
|
@@ -38,7 +38,7 @@ they are @object. We need this magic here to rewrite all the @variables to varia
|
|
38
38
|
<% # here we come from _show %>
|
39
39
|
<% update_span = "#{parent_class.to_s.underscore}_#{parent_id}_#{attribute}_list" -%>
|
40
40
|
<% path_to_new='new_' + attribute.to_s.singularize + '_path' %>
|
41
|
-
<% foreign_key = parent_class.
|
41
|
+
<% foreign_key = parent_class.reflect_on_association(attribute.to_sym).options[:foreign_key] || parent_class.name.foreign_key -%>
|
42
42
|
|
43
43
|
<% conditions = [ "#{foreign_key} = ?", parent_id ] %>
|
44
44
|
<% model = attribute.to_s.singularize.camelcase.constantize %>
|
data/lib/inline_forms/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inline_forms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rvm
|