lib/cancan-permits/permits/roles.rb in cancan-permits-0.1.4 vs lib/cancan-permits/permits/roles.rb in cancan-permits-0.2.1
- old
+ new
@@ -1,9 +1,10 @@
module Permits::Roles
def self.available
if Module.const_defined? :User
- User.roles if User.respond_to? :roles
+ [:guest, :admin]
+ #User.defined_roles if User.respond_to? :defined_roles
else
[:guest, :admin]
end
end
-end
\ No newline at end of file
+end