permissify 0.0.26 → 0.0.27
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.
|
@@ -5,8 +5,6 @@ class Role < ActiveRecord::Base
|
|
|
5
5
|
include Permissify::Model
|
|
6
6
|
PERMISSIFIED_ABILITY_APPLICABILITY = 'Role'
|
|
7
7
|
|
|
8
|
-
# is_paranoid
|
|
9
|
-
# default_scope :conditions => {:deleted_at => nil}, :order => "roles.name"
|
|
10
8
|
has_and_belongs_to_many :users
|
|
11
9
|
validates_presence_of :name, :domain_type
|
|
12
10
|
validates_uniqueness_of :name
|
|
@@ -21,7 +19,7 @@ class Role < ActiveRecord::Base
|
|
|
21
19
|
include SystemFixtures::Roles
|
|
22
20
|
|
|
23
21
|
def force_seed_id(table, permissions_model, id)
|
|
24
|
-
#
|
|
22
|
+
# TODO : account for different db adapters? written against mysql.
|
|
25
23
|
ActiveRecord::Base.connection.execute "UPDATE #{table}s SET id=#{id} WHERE id=#{permissions_model.id};"
|
|
26
24
|
end
|
|
27
25
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: permissify
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 41
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 27
|
|
10
|
+
version: 0.0.27
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Frederick Fix
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2012-07-
|
|
18
|
+
date: 2012-07-03 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: rspec
|