app/controllers/sparkly_controller.rb in sparkly-auth-1.0.2 vs app/controllers/sparkly_controller.rb in sparkly-auth-1.1.0

- old
+ new

@@ -1,9 +1,8 @@ class SparklyController < (Auth.base_controller) - unloadable helper_method :model_class, :model_instance, :model_name, :model, :model_path, :new_model_path, :edit_model_path, - :model_config, :model_session_path, :model_params + :model_config, :model_session_path, :model_params, :sparkly_config, :auth_config before_filter :find_user_model protected attr_accessor :model_instance @@ -34,14 +33,16 @@ def model_session_path send("#{model_name.underscore}_session_path") end def model_config - Auth.configuration.for_model(model_name) + model_class.sparkly_config end def model_params params[model_name.underscore] || {} end - alias_method :model, :model_instance + alias_method :model, :model_instance + alias_method :auth_config, :model_config + alias_method :sparkly_config, :model_config end