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

Use consistent code style in README examples #2374

Merged
merged 1 commit into from
Jan 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -710,7 +710,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