Skip to content

Commit

Permalink
Use new_resource in new action (#1097)
Browse files Browse the repository at this point in the history
Co-authored-by: Eugene Grigorenko <Eugene.Grigorenko@dataart.com>
  • Loading branch information
EugeneGrigorenko and Eugene Grigorenko authored Mar 26, 2020
1 parent fa6bb47 commit 8af6ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/administrate/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def show
end

def new
resource = resource_class.new
resource = new_resource
authorize_resource(resource)
render locals: {
page: Administrate::Page::Form.new(dashboard, resource),
Expand Down

0 comments on commit 8af6ce8

Please sign in to comment.