Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2374 from johnnymugs/patch-1
Browse files Browse the repository at this point in the history
Use consistent code style in README examples
  • Loading branch information
sidraval authored Jan 26, 2018
2 parents 554582e + eaa3c53 commit 69056cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ end

```ruby
def create
@user = User.create( user_params )
@user = User.create(user_params)
end

private
Expand Down Expand Up @@ -347,7 +347,7 @@ called with valid attachments._

```ruby
class Message < ActiveRecord::Base
has_attached_file :asset, styles: {thumb: "100x100#"}
has_attached_file :asset, styles: { thumb: "100x100#" }

before_post_process :skip_for_audio

Expand All @@ -363,7 +363,7 @@ afterwards, then assign manually:

```ruby
class Book < ActiveRecord::Base
has_attached_file :document, styles: {thumbnail: "60x60#"}
has_attached_file :document, styles: { thumbnail: "60x60#" }
validates_attachment :document, content_type: { content_type: "application/pdf" }
validates_something_else # Other validations that conflict with Paperclip's
end
Expand Down Expand Up @@ -738,7 +738,7 @@ called with valid attachments._

```ruby
class Message < ActiveRecord::Base
has_attached_file :asset, styles: {thumb: "100x100#"}
has_attached_file :asset, styles: { thumb: "100x100#" }

before_post_process :skip_for_audio

Expand Down

0 comments on commit 69056cd

Please sign in to comment.