Skip to content

sorcery + rails 4 + attr_protected + little bug as bonus #400

@the-teacher

Description

@the-teacher

Hello!

I create new Rails 4 beta Application with Sorcery.

1) Rails said to me:

RuntimeError in WelcomeController#index

attr_protected is extracted out of Rails into a gem. Please use new recommended protection model for params(strong_parameters) or add protected_attributes to your Gemfile to use old one.

gem 'protected_attributes' solve this problem.

Will It be changed in future? I just want to know.

2)

For Rails 4 I add require 'sorcery/engine' at top of config/initializers/sorcery.rb

require 'sorcery/engine'

# Available submodules are: :user_activation, :http_basic_auth, :remember_me,
# :reset_password, :session_timeout, :brute_force_protection, :activity_logging, :external
# :reset_password
Rails.application.config.sorcery.submodules = [:remember_me]

Maybe it can be helpful for somebody.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions