Skip to content

Commit

Permalink
More consistent quotes in scaffold generator
Browse files Browse the repository at this point in the history
  • Loading branch information
rwz committed Jan 11, 2013
1 parent d643cbe commit cca1729
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def create
if @<%= orm_instance.save %>
redirect_to @<%= singular_table_name %>, notice: <%= "'#{human_name} was successfully created.'" %>
else
render action: "new"
render action: 'new'
end
end
Expand All @@ -40,7 +40,7 @@ def update
if @<%= orm_instance.update("#{singular_table_name}_params") %>
redirect_to @<%= singular_table_name %>, notice: <%= "'#{human_name} was successfully updated.'" %>
else
render action: "edit"
render action: 'edit'
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def self.all(klass)
def test_new_hash_style
run_generator
assert_file "app/controllers/users_controller.rb" do |content|
assert_match(/render action: "new"/, content)
assert_match(/render action: 'new'/, content)
end
end
end

0 comments on commit cca1729

Please sign in to comment.