ish_manager 0.1.8.71 → 0.1.8.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15020c3b2ae86a90e132692e86760030b49114f1
4
- data.tar.gz: 201f2d07f0e80fcaf2cb32ebd39dd5a2c86d1f0c
3
+ metadata.gz: 650660454c41338065b86e50f40c01d040acb692
4
+ data.tar.gz: 67ffa11c3656a2e49e95c66b1b5a0a1df72df204
5
5
  SHA512:
6
- metadata.gz: '06871f518e0d178ae990b648af45a925be6a9ec6c383b6a3a5dc3507d3bcf1e4a02147868c2ac56bdf7b6f6bf681502d8b24bd0d5ac3c21bc6911e8c740512a3'
7
- data.tar.gz: ca8a690a82bc0efcfc1e3f54387c60cef33a3bf34fcedd8de3d2006ec30e2555b1f73ce76865689e6a412579e1b3f0bbf42d5a6709ff2caf9b32fe9d28e7666d
6
+ metadata.gz: 03327f1ed4ce7ffd45ab22d24eee1c94f739ca28bffbea9ca8c88efc0c58dada70be869b5614f28f3eb4bae214b4d7aba1c91d811d54cb81dc6d5e142d35769f
7
+ data.tar.gz: e4bc5ef3f0c044b502a5162280d44fc04b616815c43018c2b038ed09b0cbadbb18a3705d2cc0bf15695548f33ab529a94e7aa2cad53e16c01de20c5153047a1f
@@ -1,6 +1,6 @@
1
1
  module IshManager
2
2
  class ApplicationController < ActionController::Base
3
- protect_from_forgery :with => :null_session, :prepend => true
3
+ # protect_from_forgery :with => :null_session, :prepend => true
4
4
  before_action :set_current_ability
5
5
  check_authorization
6
6
 
@@ -9,8 +9,7 @@ class IshManager::FriendsController < IshManager::ApplicationController
9
9
  @friend = ::IshModels::UserProfile.find_by :email => params[:friend][:email]
10
10
  puts! @friend, 'friend!'
11
11
 
12
- authorize! :home, ::IshManager::Ability
13
- # authorize! :friends_new, @friend
12
+ authorize! :friends_new, @friend
14
13
 
15
14
  me = current_user.profile
16
15
  me.friends << @friend
@@ -2,9 +2,7 @@
2
2
  class IshManager::Ability
3
3
  include ::CanCan::Ability
4
4
 
5
- def initialize user
6
- can [ :home ], ::IshManager::Ability
7
- can [ :friends_index, :friends_new ], ::IshModels::UserProfile
5
+ def initialize user
8
6
 
9
7
  #
10
8
  # signed in user
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.71
4
+ version: 0.1.8.72
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox