Sha256: 4a9cfc79bb20be691ae89e8ff58e230bed836421e42dcc5aac7a8ae28d7162cd
Contents?: true
Size: 417 Bytes
Versions: 19
Compression:
Stored size: 417 Bytes
Contents
module Lolita module Adapter module FieldHelper 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 def content? !technical? end end end end
Version data entries
19 entries across 19 versions & 1 rubygems