mix-rails-auth 0.26.1 → 0.26.2

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: e090c2ea212942785a335d8db78f92063282a952
4
- data.tar.gz: 50dc7427564b5ad53295b29cdd1c256b0b9c52ef
3
+ metadata.gz: cc41cec8ffa9d90fa50f4b025340c08c028c6b88
4
+ data.tar.gz: ef4ddf80ec507953dfa42f2da2f3be1c05dfa7e6
5
5
  SHA512:
6
- metadata.gz: 0b52be7d065abc7ab508e73f1fb4d209ed38a9b80bdedb395330a1d8218ce927e8357ae70f696933d85ffc1cc6b24fea66412c4d04dcdae1165c9ea125c98995
7
- data.tar.gz: 6f5f31095ff143ccbd00297366b165a1db959532cbd7caeef9ecf17598ee33d2f34cfa631149c826b4fc883711cc927daba1ea99ba6d184d3ef93b075ddc3e21
6
+ metadata.gz: d2d06ceeedb7cb73307401887e8757d95923155efd3ac7aa89afa998484ad745f43ad7a7563dba078441e7d1872eaab333ce4544d5b7be3cf4fdf5a5a3b2461c
7
+ data.tar.gz: 3d9743fe74cc2cd38fca98273ea412f20de29a76fcbfddab13082ae37fd68a720a38c4af0e34c67b68386c70254b49ee27992c9ad37656b0a68eb396cd1cb595
data/app/models/role.rb CHANGED
@@ -3,4 +3,7 @@ class Role < ActiveRecord::Base
3
3
  belongs_to :resource, :polymorphic => true
4
4
 
5
5
  scopify
6
+
7
+ attr_accessible :name, :user_ids
8
+
6
9
  end
data/app/models/user.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  class User < ActiveRecord::Base
2
2
  rolify
3
+ include Authority::UserAbilities
3
4
  # Include default devise modules. Others available are:
4
5
  # :token_authenticatable, :confirmable,
5
6
  # :lockable, :timeoutable and :omniauthable
@@ -2,7 +2,7 @@ module MixRailsAuth
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 26
5
- TINY = 1
5
+ TINY = 2
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mix-rails-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.1
4
+ version: 0.26.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadjow