rails_apps_pages 0.5.1 → 0.5.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: 91f0a789ab7a631bd1c960d6e31c4a3e930cacc1
4
- data.tar.gz: fb311d6dd546c5db30530a373ae690a0fca919f8
3
+ metadata.gz: 95fed9c951272c89829afabc42f64baa52f4d499
4
+ data.tar.gz: 09ec1333fc85fd3c3e1e88bab8c6adbb8fb9c7df
5
5
  SHA512:
6
- metadata.gz: 49aad27b6c788032096b48110223eb49da2ebe8e621b9f42f85259ffd68ae188f2853acbf70e58fe06b3b2b3493af77e25d52e61c9c0f78f9d1b5daac9009d43
7
- data.tar.gz: 6ade9f5fd9558ed5f8ae98174ff73c91b11ab869ab7750cb40f22e62bea9a181b41b1370057ee5e42766bbdf04bb1a4e2224f060e0279e59dfd2aedaff70e22b
6
+ metadata.gz: 5cdb2bec581480cebe988b742c4aa02a5a45d6847741f1a59b11557ee494e55ab4079fed36f862b5a5535105d322be92607f4232aa01914a7ba5dbbfb57ec591
7
+ data.tar.gz: 4072b801b6be910f9ab74eaffde430b1b11408223934e287a54f48b9ca40f87941940e3fdc36a282a62da8c68aa25a8591461e3fe7e480f03c0d3f306606edb1
data/CHANGELOG.textile CHANGED
@@ -1,5 +1,9 @@
1
1
  h1. CHANGELOG
2
2
 
3
+ h3. 0.5.2 June 14, 2014
4
+
5
+ * updated policy for Pundit example
6
+
3
7
  h3. 0.5.1 June 13, 2014
4
8
 
5
9
  * updated User controller and policy for Pundit example
@@ -19,7 +19,7 @@ class UserPolicy
19
19
  end
20
20
 
21
21
  def destroy?
22
- raise "Cannot delete yourself." if @current_user == @user
22
+ return false if @current_user == @user
23
23
  @current_user.admin?
24
24
  end
25
25
 
@@ -1,3 +1,3 @@
1
1
  module RailsAppsPages
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_apps_pages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-13 00:00:00.000000000 Z
11
+ date: 2014-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler