Permalink
Browse files

Fix #745

  • Loading branch information...
1 parent dc8cbf0 commit a311e3b833ffa2ef134a2b1c4c1d073065c57ad1 @bbenezech bbenezech committed Sep 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rails_admin/config/fields/types/has_one_association.rb
@@ -22,7 +22,7 @@ def selected_id
end
def method_name
- super.to_s.singularize + '_id'
+ "#{name}_id"
end
end
end

0 comments on commit a311e3b

Please sign in to comment.