rails_admin_sitemap 0.3.0 → 0.3.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14429f48407222916b4d9f49c5f6360108aad2fe
4
- data.tar.gz: 58a4c31371ee088e82437e895ce81c8e0d2737c7
3
+ metadata.gz: 55c3a1ea70fc06f75486b67bbae3d38580c5017a
4
+ data.tar.gz: b9acad6ac6d0bbe649548764a80dd940f3a10b79
5
5
  SHA512:
6
- metadata.gz: 5883cb01fe2b960f9e57ad03f8ab5bcfc144c64c5336d59b45c3e031354b2116245cd62d21d2db8108505f27d4c7a9f2c860eaf95fff8b26306adda949f5e86f
7
- data.tar.gz: f7e29dacbdae615f40e06e5510eb90d20c8ce1bd9eda627142e772f820ef1a1c9e0f7b7bd9ddbf98c445886fb0ca0b3ee8915ba19b7344396edf788968e3e0ee
6
+ metadata.gz: bae5ee3bcff12cc4d87b39520a3afe9539e0258abec6496f657206ca78f2cc8a2de66089d70cd0c51aca788cdfff7a8ea44193e3a824a933d7529368aebcfbfb
7
+ data.tar.gz: 7de7fd4a13fb190afd4a840de225c018a2054b704ec42eb21bff510c821bd759b5edce6b99286ec046d41548aae890cb285bfd749b81b2ea49521c3e0b425000
@@ -6,5 +6,5 @@
6
6
 
7
7
  = link_to "Проверить", "/sitemap.xml.gz", target: :_blank, title: "Проверить сожержимое sitemap.xml там и сейчас"
8
8
  '  
9
- = link_to "Проверить тут", sitemap_path(model_name: @abstract_model, get_xml: true), title: "Проверить сожержимое sitemap.xml здесь и сейчас", onclick: "$('#file_contents').load(this.href, function(){$('#file_contents').text($('#file_contents').html())}); return false;"
9
+ = link_to "Проверить тут", sitemap_path(model_name: @abstract_model, get_xml: true), title: "Проверить сожержимое sitemap.xml здесь и сейчас", onclick: "$('#file_contents').load(this.href + '?' + (new Date().getTime()), function(){$('#file_contents').text($('#file_contents').html())}); return false;"
10
10
  pre#file_contents{style='margin-bottom: 20px;'}
@@ -11,6 +11,13 @@ module RailsAdmin
11
11
  true
12
12
  end
13
13
 
14
+ register_instance_option :route_fragment do
15
+ 'sitemap_generator'
16
+ end
17
+
18
+ register_instance_option :template_name do
19
+ 'sitemap'
20
+ end
14
21
 
15
22
  register_instance_option :controller do
16
23
  Proc.new do
@@ -105,6 +112,14 @@ module RailsAdmin
105
112
  true
106
113
  end
107
114
 
115
+ register_instance_option :route_fragment do
116
+ 'sitemap_generator'
117
+ end
118
+
119
+ register_instance_option :template_name do
120
+ 'sitemap'
121
+ end
122
+
108
123
  end
109
124
  end
110
125
  end
@@ -1,3 +1,3 @@
1
1
  module RailsAdminSitemap
2
- VERSION = "0.3.0".freeze
2
+ VERSION = "0.3.0.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_sitemap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kiseliev