lib/rolify/adapters/base.rb in rolify-3.2.0 vs lib/rolify/adapters/base.rb in rolify-3.3.0.rc1
- old
+ new
@@ -13,10 +13,10 @@
def user_class
@user_cname.constantize
end
def role_table
- @role_cname.tableize
+ role_class.table_name
end
def self.create(adapter, role_cname, user_cname)
load "rolify/adapters/#{Rolify.orm}/#{adapter}.rb"
load "rolify/adapters/#{Rolify.orm}/scopes.rb"
\ No newline at end of file