lib/rolify/adapters/base.rb in rolify-3.1.0 vs lib/rolify/adapters/base.rb in rolify-3.2.0.rc2

- old
+ new

@@ -12,11 +12,16 @@ def user_class @user_cname.constantize end + def role_table + @role_cname.tableize + end + def self.create(adapter, role_cname, user_cname) load "rolify/adapters/#{Rolify.orm}/#{adapter}.rb" + load "rolify/adapters/#{Rolify.orm}/scopes.rb" Rolify::Adapter.const_get(adapter.camelize.to_sym).new(role_cname, user_cname) end end class RoleAdapterBase < Adapter::Base \ No newline at end of file