devise_roles 0.1.1 → 0.1.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: 1ee934be745830ccdb2797e52e08f214bfd5329b
4
- data.tar.gz: 0606df0512ef6877454127c77fd938652bb8700b
3
+ metadata.gz: 79a3613be0a729ab293304a632bde8c20038f0ec
4
+ data.tar.gz: 25b92ad23f1058cfd11f4d1cf0868dca1fd1baff
5
5
  SHA512:
6
- metadata.gz: eb2b5999126147a1450fe31f09b623f3d9c8fa129d39f9783cef771e24029efdee34c2787868f4aa8e29a5bb947ba30c3daa5c088f21f0dd4e732802a9bd6fa0
7
- data.tar.gz: 62fc6f4944e5fa37d972573b4db0cb0c1c9fcd83ce5d75da325e58c28b2d353c637d9fc4d70bc208674db6f5032bc96b113ee5056f6883f12f90e0da9b2de3b8
6
+ metadata.gz: 9bb000ad737400805596a7e6bba88072bf27f4ecba5d67134575559cbbd4f79229d903388257feea505292bca5aa906d51a47fd451d0f2754d1b1e5a8c2f2710
7
+ data.tar.gz: cd78fb076ab6d0755da5eb433bc9d404d8be519e42100a29029c03c309707948c72ddae080b558714f4c97ede756f0291fa7824ffa3e164deb1b2f094e6c502b
@@ -1,3 +1,3 @@
1
1
  module DeviseRoles
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/devise_roles.rb CHANGED
@@ -1,11 +1,11 @@
1
1
  require "devise_roles/version"
2
2
 
3
- module DeviseRoles
3
+ class DeviseRoles
4
4
  def available_for_user_role(user_role_name, user_redirect_path)
5
5
  if current_user.role.name != user_role_name
6
6
  redirect_to admin_path, alert: "You should be #{user_role_name} to view that page!"
7
7
  end
8
8
  end
9
9
 
10
-
10
+
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_roles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - MarkusBansky