Sha256: bbe952e33038333458a776ea0aa4f18bd9651607a242e92e9dde5a26f8fc21fd
Contents?: true
Size: 672 Bytes
Versions: 6
Compression:
Stored size: 672 Bytes
Contents
require "attachment_magick/configuration/custom_style" module AttachmentMagick class Configuration attr_accessor :columns_amount attr_accessor :columns_width attr_accessor :gutter attr_accessor :default_add_partial def initialize @columns_amount = 19 @columns_width = 54 @gutter = 3 @custom_styles = [] @default_add_partial = "/attachment_magick/add_image" end def custom_styles(&block) if block_given? @custom_styles = CustomStyle.new @custom_styles.instance_eval(&block) else return @custom_styles end end end end
Version data entries
6 entries across 6 versions & 1 rubygems