Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
blocks / app / models / blocks / gallery.rb
Size: Mime:
module Blocks
  class Gallery < Block
    content_fields :style

    if respond_to?(:montage)
      montage :gallery
      delegate :images, to: :gallery

      def self.params
        [gallery_ids: []].concat(super)
      end
    end

    if respond_to?(:has_scrapbook)
      has_scrapbook :gallery_items

      def self.params
        [gallery_item_ids: []].concat(super)
      end
    end
  end
end