Skip to content

Commit

Permalink
Model controller -- make hobo_new use Model#user_new
Browse files Browse the repository at this point in the history
  • Loading branch information
tslocke committed Jun 25, 2008
1 parent 04cde7f commit 4c59d08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hobo/lib/hobo/model_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,7 @@ def hobo_show(*args, &b)


def hobo_new(new_record=nil, &b)
self.this = new_record || model.new
this.user_changes!(current_user) # set_creator and permission check
self.this = new_record || model.user_new!(current_user)
response_block(&b)
end

Expand Down

0 comments on commit 4c59d08

Please sign in to comment.