class ClowneActiveStorage::Declarations::IncludeAttached

DSL to add associations to ActiveStorage Attachments and Blobs for single attachments

Attributes

name[R]

Public Class Methods

new(name) click to toggle source
# File lib/clowne_active_storage/declarations/include_attached.rb, line 10
def initialize(name)
  @name = name.to_sym
end

Public Instance Methods

compile(plan) click to toggle source
# File lib/clowne_active_storage/declarations/include_attached.rb, line 14
def compile(plan)
  plan.set :attachment_association, self
end