class ArDocStore::Attributes::EmbedsBase

Attributes

class_name[R]

Public Instance Methods

embedded?() click to toggle source
# File lib/ar_doc_store/attributes/embeds_base.rb, line 13
def embedded?
  true
end

Private Instance Methods

create_attributes_method() click to toggle source
# File lib/ar_doc_store/attributes/embeds_base.rb, line 32
def create_attributes_method
  # override in subclass
end
create_build_method() click to toggle source
# File lib/ar_doc_store/attributes/embeds_base.rb, line 24
def create_build_method
  # override in subclass
end
create_ensure_method() click to toggle source
# File lib/ar_doc_store/attributes/embeds_base.rb, line 28
def create_ensure_method
  # override in subclass
end
create_validation() click to toggle source
# File lib/ar_doc_store/attributes/embeds_base.rb, line 36
def create_validation
  # override in subclass
end
handle_options() click to toggle source
# File lib/ar_doc_store/attributes/embeds_base.rb, line 19
def handle_options
  @class_name = options[:class_name] || attribute.to_s.classify
  @attribute = attribute.to_sym
end