Sha256: ecd125dca37e72c10422a93e709ec1e92fb59860f6efcb1cfe3ffeb14886a1d9

Contents?: true

Size: 512 Bytes

Versions: 31

Compression:

Stored size: 512 Bytes

Contents

module Enjoy
  module Admin
    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
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
enjoy_cms-0.4.1 lib/enjoy/admin.rb
enjoy_cms-0.4.0.5 lib/enjoy/admin.rb
enjoy_cms-0.4.0.4 lib/enjoy/admin.rb
enjoy_cms-0.4.0.3 lib/enjoy/admin.rb
enjoy_cms-0.4.0.2 lib/enjoy/admin.rb
enjoy_cms-0.4.0.1 lib/enjoy/admin.rb
enjoy_cms-0.4.0 lib/enjoy/admin.rb
enjoy_cms-0.4.0.beta3 lib/enjoy/admin.rb
enjoy_cms-0.3.7.4 lib/enjoy/admin.rb
enjoy_cms-0.3.7.3 lib/enjoy/admin.rb
enjoy_cms-0.3.7.2 lib/enjoy/admin.rb
enjoy_cms-0.3.7.1 lib/enjoy/admin.rb
enjoy_cms-0.3.7 lib/enjoy/admin.rb
enjoy_cms-0.3.6.2 lib/enjoy/admin.rb
enjoy_cms-0.3.6.1 lib/enjoy/admin.rb
enjoy_cms-0.3.6 lib/enjoy/admin.rb
enjoy_cms-0.3.5 lib/enjoy/admin.rb
enjoy_cms-0.3.4 lib/enjoy/admin.rb
enjoy_cms-0.3.3 lib/enjoy/admin.rb
enjoy_cms-0.3.2.1 lib/enjoy/admin.rb