Skip to content

Commit

Permalink
Small docs fix inside ActiveStorage [ci skip]
Browse files Browse the repository at this point in the history
`ActiveRecord::Base` -> `ApplicationRecord` for consistency with default
Rails generators and ActiveStorage guides.
  • Loading branch information
dixpac committed Aug 23, 2019
1 parent 382ffaa commit df462d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion activestorage/lib/active_storage/attached/many.rb
Expand Up @@ -37,7 +37,7 @@ def attach(*attachables)

# Returns true if any attachments has been made.
#
# class Gallery < ActiveRecord::Base
# class Gallery < ApplicationRecord
# has_many_attached :photos
# end
#
Expand Down
4 changes: 2 additions & 2 deletions activestorage/lib/active_storage/attached/model.rb
Expand Up @@ -10,7 +10,7 @@ module Attached::Model
class_methods do
# Specifies the relation between a single attachment and the model.
#
# class User < ActiveRecord::Base
# class User < ApplicationRecord
# has_one_attached :avatar
# end
#
Expand Down Expand Up @@ -66,7 +66,7 @@ def #{name}=(attachable)

# Specifies the relation between multiple attachments and the model.
#
# class Gallery < ActiveRecord::Base
# class Gallery < ApplicationRecord
# has_many_attached :photos
# end
#
Expand Down
2 changes: 1 addition & 1 deletion activestorage/lib/active_storage/attached/one.rb
Expand Up @@ -37,7 +37,7 @@ def attach(attachable)

# Returns +true+ if an attachment has been made.
#
# class User < ActiveRecord::Base
# class User < ApplicationRecord
# has_one_attached :avatar
# end
#
Expand Down

0 comments on commit df462d5

Please sign in to comment.