effective_datatables 1.3.4 → 1.3.5

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: 645afb224b6e4c126e123cf1b0fe2279560b76d0
4
- data.tar.gz: 125289441e6b5d29b684d11135d41b2e16e5bfd2
3
+ metadata.gz: 6e523e05861fc5fdbd733ad70cecffd66dd4bccc
4
+ data.tar.gz: b8fe6b15fa56c7678a2a27730ac015d73b3c0f5e
5
5
  SHA512:
6
- metadata.gz: ee412c7efaa5d9c0dce32002bccae79dcdaa3990ef6cd2573abd37ba2623aa73a1d0158b3083e39190969e516994c08a7c074cf8daf1f2afc54b75e952733263
7
- data.tar.gz: e389de935982957b7e40b1deb64d59417561c24d905b3f25bbfb06c3362f91b4a86e89fc87dc769594d3a70054399137536892425ffae8c18f6b3d7d2068a82c
6
+ metadata.gz: 40bc6660bd4fad913a122f25c857e683290dc4ed51449e097890da7018a8623d188968d8b3cf16c563a490430f042c5cfa03ca522bddfeff2813e10b544d04aa
7
+ data.tar.gz: 1f014ef661c4b3f0646f7c98362e2a4d76595bfa2f4b26893c75453038b331c01e0f2442536936e081a32369ea280ee504c16ec4fe81dbdb76ce5cafc8733ecb
@@ -85,8 +85,9 @@ module EffectiveDatatablesHelper
85
85
 
86
86
  def datatables_admin_path?
87
87
  @datatables_admin_path ||= (
88
+ path = request.path.to_s.downcase.chomp('/') + '/'
88
89
  referer = request.referer.to_s.downcase.chomp('/') + '/'
89
- (attributes[:admin_path] || referer.include?('/admin/')) rescue false
90
+ (attributes[:admin_path] || referer.include?('/admin/') || path.include?('/admin/')) rescue false
90
91
  )
91
92
  end
92
93
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '1.3.4'.freeze
2
+ VERSION = '1.3.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_datatables
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-16 00:00:00.000000000 Z
11
+ date: 2015-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails