Sha256: 949b4e9388857aaab032c6739c6f0e98f5d6dd10d7bc369a0eb9a18e69ae8965

Contents?: true

Size: 377 Bytes

Versions: 1

Compression:

Stored size: 377 Bytes

Contents

module ActiveAdmin
  module Views
    class YandexMapProxy < LatlngProxy
      def build(_, *args, &_block)
        super _, *args, &_block
        @api_key_name = 'apiKey'
        @template_name = 'yandex.html'
        @script_html = "<script src=\"https://api-maps.yandex.ru/2.1/?lang=%s%s&load=Map,Placemark\" type=\"text/javascript\"></script>"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activeadmin_latlng-1.2.2 lib/activeadmin/views/yandex_map_proxy.rb