-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update engine for refinerycms 3.0.0 #76
Conversation
bricesanchez
commented
Jun 30, 2015
- Add new dependencies
- Use new way to precompile assets
- Use new icons set in admin
- Use new way to permit params
* Add new dependencies * Use new way to precompile assets * Use new icons set in admin * Use new way to permit params
Hey Brice, thanks for your help. LGTM but we're going to have investigate the test failure. |
I added you to the collaborators, feel free to merge green PR that have a 👍 review |
Thanks @unixcharles :) |
page_params_without_copywriting_phrases_params.merge(phrases_params) | ||
module RefineryCopywritingControllerDecorator | ||
def permitted_page_params | ||
params[:page][:copywriting_phrases_attributes]={} if params[:page][:copywriting_phrases_attributes].nil? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead you can do
params[:page][:copywriting_phrases_attributes] ||= {}
it has the same effect (except that it would override false too)
It can now override false too. Thanks @unixcharles Remove useless nil? check in permitted_page_params
Is it ok for you @unixcharles ? :) |
👍 |
Update engine for refinerycms 3.0.0
Thank you ! |