documentation-editor 0.1.1 → 0.1.2

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: 990c7c2d2ea814fd86bd5de7f4833a041b467aa8
4
- data.tar.gz: c67a90af01e55d73503649179ab8a8f4405f5343
3
+ metadata.gz: 6e6bd0a7e0fd131c4cc89835f651bd4fd6394a72
4
+ data.tar.gz: af014098a71b07a5782d2d8cbc6861b0fac2a250
5
5
  SHA512:
6
- metadata.gz: 5cbf5a91178bea8c9be935b95ad9811eea64846796cba50dc31f2d228178663922578c11925107c09122e71610754ad0e752cdffee68b927ece268ae7a964cd7
7
- data.tar.gz: 5b45cb04f53a6c2d4da8f7fd89d81a84033cee855c1d43697d02cc698da54ee0b404b983685ac14a21a8c2e65607e1c714eb59643704e6173114101f93e9ff5f
6
+ metadata.gz: cd2f4e684959b41a21be1794a0ddf60669e60dd7bc6e3ce7aa86719eccb605ddaffabeed0c5080d528ad9d9a89c4cc26c81dad28d92ff27485f3347d3ba20a70
7
+ data.tar.gz: 7dbff47da968167994ec8eee56b2b3701b441e2d11269d66cbe3eaaedd38668247707ab86a9b25c9a39e4bd068eca904921adf5ab951f13a059bdbbc4f6e0aa9
@@ -7,9 +7,9 @@ module DocumentationEditor
7
7
  if DocumentationEditor::Config.is_admin
8
8
  before_filter except: [:show] do |controller|
9
9
  controller.instance_eval do
10
- if !DocumentationEditor::Config.is_admin
10
+ if !controller.send(DocumentationEditor::Config.is_admin)
11
11
  redirect_to '/'
12
- return false
12
+ false
13
13
  end
14
14
  end
15
15
  end
@@ -1,3 +1,3 @@
1
1
  module DocumentationEditor
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: documentation-editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia Team