wnw_permissible 0.1.3 → 1.0.0
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4d7ea45fc38eccf719057a102143ee09cd397d95
|
4
|
+
data.tar.gz: 511e72f8cc4464ab8df411e59500e57bfac45c16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3486910699f72450e8d08710b6249df38f5c6b4327cd7c26497f92342360af9548032a9f4dede183c1e3929819b7376161c0564d3433a1e3c81dc4d55b661723
|
7
|
+
data.tar.gz: 3bff63e73bf568fc952bf01a726d2ab75e8b150b5ac3430df49a863068ed694ab633d3c873e5bf7a90aa63a2fd1d823638ab90d37e57f4c60fd263ec010b9bc9
|
@@ -2,8 +2,8 @@ class CreateAuthorizations < ActiveRecord::Migration<%= migration_version %>
|
|
2
2
|
|
3
3
|
def change
|
4
4
|
create_table :authorizations do |t|
|
5
|
-
t.string
|
6
|
-
t.
|
5
|
+
t.string :authorizable_type, :limit => 191
|
6
|
+
t.bigint :authorizable_id
|
7
7
|
t.references :role, :foreign_key => true
|
8
8
|
|
9
9
|
t.timestamps
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Created by WnwPermissible to contain any custom model code. It's safe to
|
2
2
|
# delete this file if you do not need any custom functionality in the model.
|
3
3
|
|
4
|
-
require_dependency WnwPermissible::Engine.config.root.join('app', 'models',
|
4
|
+
require_dependency WnwPermissible::Engine.config.root.join('app', 'models', '<%= config[:model] %>.rb').to_s
|
5
5
|
|
6
6
|
class <%= config[:model].camelize %>
|
7
7
|
# add custom model code here
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wnw_permissible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Cameron
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
88
|
rubyforge_project:
|
89
|
-
rubygems_version: 2.
|
89
|
+
rubygems_version: 2.5.1
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: Adds role-based permissions to a Rails application
|