Module: RailsAdmin::Extensions::UrlForExtension

Defined in:
lib/rails_admin/extensions/url_for_extension.rb

Instance Method Summary collapse

Instance Method Details

#url_for(options, *args) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/rails_admin/extensions/url_for_extension.rb', line 6

def url_for(options, *args)
  case options[:id]
  when Array
    options[:id] = RailsAdmin.config.composite_keys_serializer.serialize(options[:id])
  end
  super options, *args
end