effective_style_guide 2.0.1 → 2.0.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: 975b4f35cc47e78cc9cfaf36e4010201ff0ad1d7
4
- data.tar.gz: fdd34e154198d4828b7d79838888a8c55ef93bf4
3
+ metadata.gz: d9149afce56b383e2c309f80b1403bb6ebef2a47
4
+ data.tar.gz: 592d1863760e934cb5a40d1839cc5e7a6ef83fe2
5
5
  SHA512:
6
- metadata.gz: 4b3c813060dc3542f175c46c33a4f55bc8bb61e0d487abc208c8c23a21ace522a72f497b0920b893c93aa8a91c1b65ad17c61f8126d86014514866dfe20d3e68
7
- data.tar.gz: 5f0dc5614184e00be21a1de652a9fd6d6012ae1a59e0571ca5ca7c89746f75aee14311698d22cc67741493c64776194da39138705ab1786f348ce9701fdf58af
6
+ metadata.gz: 077831c36cc00bbe7001f47dac589ce190d1c439aafdfc2cf95a27c7eece22633cc3880661d9d86529a05207de8bfd20d2a2f4c1c52e90958ebcd71114fb9b17
7
+ data.tar.gz: 51f6f3e44ea5b82f1d0f8c83749f58a9d22179850280b80315c2a05694667e37a04fc62f6707c111acfd466713022d615da375d66bcb09cffb4099c5083b45b1
data/README.md CHANGED
@@ -159,7 +159,7 @@ The permissions you actually want to define are as follows (using CanCan):
159
159
 
160
160
  ```ruby
161
161
  if user.is?(:admin)
162
- can :show, Effective::StyleGuide
162
+ can [:index, :show], Effective::StyleGuide
163
163
  end
164
164
  ```
165
165
 
@@ -1,6 +1,9 @@
1
1
  module Effective
2
2
  class StyleGuide < ActiveRecord::Base
3
- acts_as_asset_box files: 1..6
3
+
4
+ if defined?(EffectiveAssets)
5
+ acts_as_asset_box files: 1..6
6
+ end
4
7
 
5
8
  ATTRIBUTES = [
6
9
  :id, :title, :email, :password, :number, :range, :category, :content, :phone, :fax, :cell,
@@ -1,3 +1,3 @@
1
1
  module EffectiveStyleGuide
2
- VERSION = '2.0.1'.freeze
2
+ VERSION = '2.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_style_guide
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
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: 2018-02-15 00:00:00.000000000 Z
11
+ date: 2018-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails