Skip to content

Commit

Permalink
Fix syntax error in Ruby1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibuya committed Mar 16, 2012
1 parent 163da3e commit 9d7c6ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rails_admin/adapters/mongoid/extension.rb
Expand Up @@ -39,7 +39,8 @@ def accepts_nested_attributes_for_with_rails_admin(*args)
args.each do |arg|
@nested_attributes_options[arg.to_sym] = options.reverse_merge(:allow_destroy=>false, :update_only=>false)
end
accepts_nested_attributes_for_without_rails_admin(*args, options)
args << options
accepts_nested_attributes_for_without_rails_admin(*args)
end
end
end
Expand Down

0 comments on commit 9d7c6ac

Please sign in to comment.