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

We don't need all crudify stuff for form generated settings controller s... #1823

Merged
merged 1 commit into from
Jul 18, 2012

Conversation

ugisozols
Copy link
Member

...o write edit and update actions ourselves.
#1817

I took all of the code from inquiries extension.

…r so write edit and update actions ourselves.
@travisbot
Copy link

This pull request fails (merged b5c231a into 8dd122c).

@@ -1,4 +1,4 @@
Refinery::Core::Engine.routes.append do
Refinery::Core::Engine.routes.draw do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please explain this change

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ugisozols
Copy link
Member Author

@parndt @robyurkowski merge?

after_filter :save_subject_for_confirmation?, :only => [:create, :update]
around_filter :rewrite_flash?, :only => [:create, :update]
def edit
@setting = Refinery::Setting.find(params[:id])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need the parentheses:

def edit
  @setting = Refinery::Setting.find params[:id]
end

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, but I prefer them (most of the times).

@parndt parndt merged commit b5c231a into master Jul 18, 2012
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.

3 participants