Skip to content
Browse files

simplify class definition

  • Loading branch information...
1 parent 4d01ec5 commit 8f339c73a8c795d2ad8559fecf18ac15f166aef6 @garybernhardt committed Jan 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 design_experiment/posts.rb
View
2 design_experiment/posts.rb
@@ -2,7 +2,7 @@
module Interactors
class CreatePost
- class PostSaved < Struct.new(:current_user, :post); end
+ PostSaved = Struct.new(:current_user, :post)
class ValidationFailure < RuntimeError
takes :current_user, :post
end

0 comments on commit 8f339c7

Please sign in to comment.
Something went wrong with that request. Please try again.