Class: ActiveAdmin::Views::YandexMapProxy
- Inherits:
-
LatlngProxy
- Object
- FormtasticProxy
- LatlngProxy
- ActiveAdmin::Views::YandexMapProxy
- Defined in:
- lib/activeadmin/views/yandex_map_proxy.rb
Instance Method Summary collapse
Methods inherited from LatlngProxy
#key, #loading_map_code, #script_html, #to_s
Instance Method Details
#build(_, *args, &_block) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/activeadmin/views/yandex_map_proxy.rb', line 4 def build(_, *args, &_block) super _, *args, &_block @api_key_name = 'apiKey' @template_name = 'yandex.html.erb' @script_html = "<script src=\"https://api-maps.yandex.ru/2.1/?lang=%s%s&load=Map,Placemark\" type=\"text/javascript\"></script>" end |