Skip to content

Commit

Permalink
fix, replaced instance vars to method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
dm1try committed Feb 2, 2013
1 parent 74d5684 commit 23e9219
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -34,15 +34,15 @@ class Map < RailsAdmin::Config::Fields::Base
end

def dom_name
@dom_name ||= "#{bindings[:form].object_name}_#{@name}_#{@longitude_field}"
@dom_name ||= "#{bindings[:form].object_name}_#{@name}_#{longitude_field}"
end

def latitude_dom_name
@lat_dom_name ||= "#{bindings[:form].object_name}_#{@name}"
end

def longitude_dom_name
@lon_dom_name ||= "#{bindings[:form].object_name}_#{@longitude_field}"
@lon_dom_name ||= "#{bindings[:form].object_name}_#{longitude_field}"
end
end
end

0 comments on commit 23e9219

Please sign in to comment.