Module: Polygallery
- Defined in:
- lib/polygallery.rb,
lib/polygallery/glue.rb,
lib/polygallery/engine.rb,
lib/polygallery/railtie.rb,
lib/polygallery/version.rb,
lib/polygallery/validators.rb,
app/models/polygallery/photo.rb,
lib/polygallery/view_helpers.rb,
lib/polygallery/model_helpers.rb,
app/models/polygallery/gallery.rb,
lib/polygallery/has_polyphotos.rb,
lib/polygallery/has_polygallery.rb,
lib/polygallery/capybara_helpers.rb,
lib/polygallery/acts_as_polyphoto.rb,
app/models/polygallery/polygallery.rb,
lib/polygallery/controller_helpers.rb,
lib/polygallery/simple_form_helper.rb,
lib/polygallery/acts_as_polygallery.rb,
lib/polygallery/strong_params_helper.rb,
app/helpers/polygallery/photos_helper.rb,
app/helpers/polygallery/galleries_helper.rb,
app/helpers/polygallery/application_helper.rb,
app/controllers/polygallery/photos_controller.rb,
app/controllers/polygallery/galleries_controller.rb,
app/controllers/polygallery/application_controller.rb,
lib/generators/polygallery/install/install_generator.rb,
lib/polygallery/validators/polygallery_presence_validator.rb
Overview
require ‘polygallery/railtie’ if defined? Rails
Defined Under Namespace
Modules: ActsAsPolygallery, ActsAsPolyphoto, ApplicationHelper, CapybaraHelpers, ControllerHelpers, CustomizedGallery, CustomizedPhoto, GalleriesHelper, Generators, Glue, HasPolygallery, HasPolyphotos, ModelHelpers, PhotosHelper, Polygallery, SimpleFormHelper, StrongParamsHelper, Validators, ViewHelpers Classes: ApplicationController, Engine, GalleriesController, Gallery, Photo, PhotosController, Railtie
Constant Summary collapse
- DEFAULT_SETTINGS =
{ associations: { gallery: { class_name: '::Polygallery::Gallery', as: :galleryable, dependent: :destroy }, photos: { class_name: '::Polygallery::Photo', # before_add: :set_nest, dependent: :destroy, foreign_key: :gallery_id } }, association_names: { gallery: :gallery, photos: :photos }, nested_attributes: { gallery: { reject_if: :all_blank }, photos: { allow_destroy: true, reject_if: proc {|attributes| !attributes.key?('id') && attributes['photo'].nil? } } }, validates: {}, paperclip: { styles: {medium: '300x300#', thumb: '100x100#'}, default_url: 'polygallery/thumbnail-missing.jpg' }, paperclip_validations: { content_type: /\Aimage\/.*\Z/, presence: false } }
- VERSION =
'0.4.5'