Skip to content
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

Merged
merged 4 commits into from
Jul 8, 2015

Conversation

bricesanchez
Copy link
Collaborator

  • 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
@unixcharles
Copy link
Owner

Hey Brice, thanks for your help.

LGTM but we're going to have investigate the test failure.

@unixcharles
Copy link
Owner

I added you to the collaborators, feel free to merge green PR that have a 👍 review

@bricesanchez
Copy link
Collaborator Author

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?
Copy link
Owner

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)

Brice Sanchez added 2 commits July 6, 2015 10:16
It can now override false too. Thanks @unixcharles

Remove useless nil? check in permitted_page_params
@bricesanchez
Copy link
Collaborator Author

Is it ok for you @unixcharles ? :)

@unixcharles
Copy link
Owner

👍

unixcharles added a commit that referenced this pull request Jul 8, 2015
Update engine for refinerycms 3.0.0
@unixcharles unixcharles merged commit ada998a into unixcharles:master Jul 8, 2015
@bricesanchez
Copy link
Collaborator Author

Thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants