module Lolita::Adapter::FieldHelper

Public Instance Methods

content?() click to toggle source
# File lib/lolita/adapter/field_helper.rb, line 14
def content?
  !technical?
end
technical?() click to toggle source
# File lib/lolita/adapter/field_helper.rb, line 4
def technical?
  if self.name.to_s.match(/^created_at|updated_at|type$/)
    true
  elsif self.primary?
    true
  elsif adapter.klass.respond_to?(:uploaders)
    adapter.klass.uploaders.keys.include?(name.to_sym)
  end
end