Sha256: c8b74164d651652f93bf5d2bb358081c9687961b5584030c14af1c12216363b4

Contents?: true

Size: 317 Bytes

Versions: 9

Compression:

Stored size: 317 Bytes

Contents

class Hash
  
  # this method extracts all info from the hash to create javascript
  # this javascript is then rendered raw to the view so it can be interpreted and executed
  def to_gmaps4rails(edit_map_with_id = false)
    Gmaps4rails.create_js_from_hash(self.with_indifferent_access, edit_map_with_id)
  end
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gmaps4rails-1.1.5 lib/gmaps4rails/extensions/hash.rb
gmaps4rails-1.1.4 lib/gmaps4rails/extensions/hash.rb
gmaps4rails-1.1.3 lib/gmaps4rails/extensions/hash.rb
gmaps4rails-1.1.2 lib/gmaps4rails/extensions/hash.rb
gmaps4rails-1.1.1 lib/gmaps4rails/extensions/hash.rb
gmaps4rails-1.1.0 lib/gmaps4rails/extensions/hash.rb
gmaps4rails-1.0.2 lib/gmaps4rails/extensions/hash.rb
gmaps4rails-1.0.1 lib/gmaps4rails/extensions/hash.rb
gmaps4rails-1.0.0 lib/gmaps4rails/extensions/hash.rb