Sha256: 9be0fcfb065cec566c9b8c33c20d6823c5f40a30779ea221bdda79f422e1e8e2
Contents?: true
Size: 621 Bytes
Versions: 1
Compression:
Stored size: 621 Bytes
Contents
module Annotator module InitialDescription # Initial descriptinos for paperclip attachments columns class Paperclip < Base def check if @model.respond_to? :attachment_definitions @model.attachment_definitions.keys.each do |att| cols = ["#{att}_file_name", "#{att}_content_type", "#{att}_file_size", "#{att}_updated_at"] if cols.include? @column @attachment = att return true end end end return false end def text "Paperclip for #{@attachment}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
annotator-0.0.8 | lib/annotator/initial_description/paperclip.rb |