Sha256: 9fc92be962f9036f0d7e622674983f6ce7b78087af53287787924143cf752dfa
Contents?: true
Size: 428 Bytes
Versions: 19
Compression:
Stored size: 428 Bytes
Contents
module Pageflow class UsedFile < SimpleDelegator def initialize(file, usage = nil) super(file) @usage = usage || file.usages.first end def configuration @usage.configuration end def update_attributes!(attributes) super(attributes.except(:configuration)) @usage.update_attributes!(attributes.slice(:configuration)) end def usage_id @usage.id end end end
Version data entries
19 entries across 19 versions & 1 rubygems