lib/simple_roles/configuration.rb in simple_roles-0.0.11 vs lib/simple_roles/configuration.rb in simple_roles-0.0.12
- old
+ new
@@ -1,9 +1,9 @@
module SimpleRoles
module Configuration
extend self
-
+
attr_writer :strategy, :user_models
def user_models
@user_models ||= []
end
@@ -76,10 +76,10 @@
rescue
puts "SimpleRoles warning: Couldn't find Role for #{rolle}. Maybe you need to re-run migrations?"
end
end if strategy == :many
end
-
+
def default_strategy
:one
end
end
end