inline_forms 1.4.8 → 1.4.9

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.
@@ -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.first.association(attribute.to_sym).reflection.options[:foreign_key] || parent_class.name.foreign_key -%>
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 %>
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineForms
3
- VERSION = "1.4.8"
3
+ VERSION = "1.4.9"
4
4
  end
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.8
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-29 00:00:00.000000000 Z
12
+ date: 2012-07-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rvm