Skip to content

Commit

Permalink
fix, add longitude field to allowed_methods, couse rails_admin main c…
Browse files Browse the repository at this point in the history
…ontroller sanitized this param
  • Loading branch information
dm1try committed Feb 2, 2013
1 parent 23e9219 commit fd70df9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ module RailsAdmin::Config::Fields::Types
class Map < RailsAdmin::Config::Fields::Base
RailsAdmin::Config::Fields::Types::register(:map, self)

def allowed_methods
[@name, longitude_field]
end

# THe name of the corresponding longitude field to match the latitude field
# in this object.
register_instance_option(:longitude_field) do
Expand Down

0 comments on commit fd70df9

Please sign in to comment.