Module: AttachmentMagick
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/attachment_magick.rb,
lib/attachment_magick/dsl.rb,
lib/attachment_magick/railtie.rb,
lib/attachment_magick/version.rb,
app/models/attachment_magick/mongoid_image.rb,
app/models/attachment_magick/active_record_image.rb,
lib/attachment_magick/configuration/custom_style.rb,
lib/attachment_magick/configuration/configuration.rb,
lib/generators/attachment_magick/install_generator.rb,
lib/generators/attachment_magick/migration_generator.rb
Defined Under Namespace
Modules: AttachmentMagickHelper, ClassMethods, Generators Classes: ActiveRecordImage, Configuration, CustomStyle, DSL, Engine, ImagesController, MongoidImage
Constant Summary collapse
- VERSION =
"0.3.6"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
11 12 13 |
# File 'lib/attachment_magick.rb', line 11 def configuration @configuration end |
Class Method Details
.setup {|configuration| ... } ⇒ Object
14 15 16 17 |
# File 'lib/attachment_magick.rb', line 14 def self.setup self.configuration ||= Configuration.new yield(configuration) end |
Instance Method Details
#image_cover ⇒ Object
87 88 89 |
# File 'lib/attachment_magick.rb', line 87 def image_cover self.images.order(:priority).first end |