aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib/active_storage/attached.rb
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-07-21 14:21:14 -0400
committerGeorge Claghorn <george@basecamp.com>2018-07-21 14:21:14 -0400
commit0f57f75008242d1739326fec38791c01852c9aa7 (patch)
treef0d186519060b6d97d4d7157245c4c5cead0dfd5 /activestorage/lib/active_storage/attached.rb
parent89123523d2e1e6af42d4ee19ad6537e86af0e49f (diff)
downloadrails-0f57f75008242d1739326fec38791c01852c9aa7.tar.gz
rails-0f57f75008242d1739326fec38791c01852c9aa7.tar.bz2
rails-0f57f75008242d1739326fec38791c01852c9aa7.zip
Remove unused attribute
Diffstat (limited to 'activestorage/lib/active_storage/attached.rb')
-rw-r--r--activestorage/lib/active_storage/attached.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activestorage/lib/active_storage/attached.rb b/activestorage/lib/active_storage/attached.rb
index 0ccf76f00b..b540f85fbe 100644
--- a/activestorage/lib/active_storage/attached.rb
+++ b/activestorage/lib/active_storage/attached.rb
@@ -6,10 +6,10 @@ module ActiveStorage
# Abstract base class for the concrete ActiveStorage::Attached::One and ActiveStorage::Attached::Many
# classes that both provide proxy access to the blob association for a record.
class Attached
- attr_reader :name, :record, :dependent
+ attr_reader :name, :record
- def initialize(name, record, dependent:)
- @name, @record, @dependent = name, record, dependent
+ def initialize(name, record)
+ @name, @record = name, record
end
private