module Enjoy::Admin

Public Class Methods

map_config(is_active = true) { |self| ... } click to toggle source
# File lib/enjoy/admin.rb, line 3
def self.map_config(is_active = true)
  Proc.new {
    active is_active
    label I18n.t('enjoy.map')
    field :address, :string
    field :map_address, :string
    field :map_hint, :string
    field :coordinates, :string do
      read_only true
      formatted_value{ bindings[:object].coordinates.to_json }
    end
    field :lat
    field :lon

    if block_given?
      yield self
    end
  }
end