effective_pages 1.3.0 → 1.3.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
  SHA256:
3
- metadata.gz: 8fb3aea6d94ec45d0c366ab6fe818d1bb2979bb59d2d88d9f194e7d0dd212682
4
- data.tar.gz: 4cb2f4ac2f0a63ab3d1c2635815b1b5b0e80ca5d3eed2d0acc5d4390285144b3
3
+ metadata.gz: afb4f4c713dad16254ce08850d33f4b585b78d11ba55610671f24968ff935079
4
+ data.tar.gz: 937fe7d81c8d5954842b6c645ad439a191204fb5966c1c213f68a1c5a715ba63
5
5
  SHA512:
6
- metadata.gz: 10ae029db472e823b42500407aa201caf9ffd615b8845622cc2d9c3c71d414ce7db7aeb3fb2be5c2ef573c17e62f977e7d7b5eb4adb4720f556a5500142e9c7c
7
- data.tar.gz: 76b70355bf3982f0fad8e0ff39d4b5b8da882f790acfbe8f28e9de3c7f1080f897ca000876aa0858336944731ee375153e91a1245a9a4194c6ac6a7bc0f9b51e
6
+ metadata.gz: b25442cb26382208d134b491f9ad9a6a153ed3396c34bd3b2ed5611c42d055e90e9235d059303ee9bcbef968ef585426ec94fbd0de9e35bd76aeebb22bd2092f
7
+ data.tar.gz: 4dfd30367d586e0333ee3a6f0ad460b8893f179d6c7d3cd98a57efd89ee1a86294880803f5838f7198f253e868f639df29ad9b291d62f22be41123d4ee620c20
@@ -6,10 +6,7 @@ module Effective
6
6
 
7
7
  @page = @pages.find(params[:id])
8
8
 
9
- raise ActiveRecord::RecordNotFound unless @page.present? # Incase .find() isn't raising it
10
- raise Effective::AccessDenied unless @page.roles_permit?(current_user)
11
-
12
- EffectivePages.authorized?(self, :show, @page)
9
+ EffectiveResources.authorize!(self, :show, @page)
13
10
 
14
11
  @page_title = @page.title
15
12
  @meta_description = @page.meta_description
@@ -3,7 +3,7 @@ module EffectiveMenusHelper
3
3
  menu = Effective::Menu.find_by_title(menu.to_s) if menu.kind_of?(String) || menu.kind_of?(Symbol)
4
4
  return "<ul class='nav navbar-nav'><li>Menu '#{menu}' does not exist</li></ul>".html_safe if !menu.present?
5
5
 
6
- if (effectively_editting? && EffectivePages.authorized?(controller, :edit, menu) rescue false)
6
+ if effectively_editting? && EffectiveResources.authorized?(controller, :edit, menu)
7
7
  options[:menu_id] = menu.id
8
8
  form_for(menu, :url => '/') { |form| options[:form] = form }
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module EffectivePages
2
- VERSION = '1.3.0'.freeze
2
+ VERSION = '1.3.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.2.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: sass-rails
28
+ name: sassc
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="