Skip to content

Commit

Permalink
Example improvments
Browse files Browse the repository at this point in the history
  • Loading branch information
Iago Silva committed Mar 23, 2020
1 parent 936dd72 commit 4174ee7
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,7 @@ Foo.call(foo: foo, bar: bar)
Simple example to release a _POST_

```ruby
# app/controllers/post_releases_controller.rb
class PostReleasesController < ApplicationController

# [...]

def create
if ReleasePost.call(post: @post) # <--
# [...]
else
# [...]
end
end

# [...]

end
ReleasePost.call(post: @post)
```

```ruby
Expand Down

0 comments on commit 4174ee7

Please sign in to comment.