Class: SDL::Attachment::HasOne

Inherits:
SDL::Attachment show all
Defined in:
lib/sdl/attachment.rb

Overview

A file that is attached to a Model

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from SDL::Field

Instance Method Details

#typeSymbol

The type of field

Returns:

  • (Symbol)


13
14
15
# File 'lib/sdl/attachment.rb', line 13

def type
  :has_one_attached
end