Skip to content

Commit

Permalink
Merge pull request werein#70 from atwam/patch-1
Browse files Browse the repository at this point in the history
Should use param_key for proper choice of the model parameter
  • Loading branch information
Jiri Kolarik committed Jan 13, 2016
2 parents ba17258 + 1498f54 commit 5d18c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/x-editable-rails/view_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def editable(object, method, options = {})
html_options = options.delete(:html){ Hash.new }

if xeditable?(object)
model = object.class.model_name.element
model = object.class.model_name.param_key
nid = options.delete(:nid)
nested = options.delete(:nested)
title = options.delete(:title) do
Expand Down

0 comments on commit 5d18c7d

Please sign in to comment.