Module: Enjoy::Admin
- Defined in:
- lib/enjoy_cms.rb,
lib/enjoy/admin.rb,
lib/enjoy/admin/embedded_element.rb
Defined Under Namespace
Modules: EmbeddedElement
Class Method Summary collapse
Class Method Details
.map_config(is_active = true) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# 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 |