1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove unnecessary method delegations

This commit is contained in:
George Claghorn 2017-07-06 17:00:21 -04:00
parent 87fe9ff1a3
commit 04e6728dd5

View file

@ -3,7 +3,7 @@ require "active_support/core_ext/module/delegation"
class ActiveStorage::Service::MirrorService < ActiveStorage::Service
attr_reader :services
delegate :download, :exist?, :url, :byte_size, :checksum, to: :primary_service
delegate :download, :exist?, :url, to: :primary_service
def initialize(services:)
@services = services