Sha256: be0a6e4c7009e191c4c16f33e52f77bb4fcc0530c8db090ecc72202cfa04c7d4

Contents?: true

Size: 954 Bytes

Versions: 5

Compression:

Stored size: 954 Bytes

Contents

module Enjoy::News
  module Admin
    module Image
      def self.config(nav_label = nil, fields = {})
        if Enjoy::News.config.gallery_support
          if Enjoy::News.mongoid?
            if block_given?
              Enjoy::Gallery::Admin::EmbeddedImage.config(fields) do |config|
                yield config
              end
            else
              Enjoy::Gallery::Admin::EmbeddedImage.config(fields)
            end

          else
            nav_label ||= I18n.t('enjoy.news')
            if block_given?
              Enjoy::Gallery::Admin::Image.config(nav_label, fields) do |config|
                yield config
              end
            else
              Enjoy::Gallery::Admin::Image.config(nav_label, fields)
            end
          end #if Enjoy::News.mongoid?
        end #if Enjoy::News.config.gallery_support

      end #def self.config(fields = {})

    end #module Image
  end #module Admin
end #module Enjoy::News

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
enjoy_cms_news-0.4.1 lib/enjoy/news/admin/image.rb
enjoy_cms_news-0.4.0.2 lib/enjoy/news/admin/image.rb
enjoy_cms_news-0.4.0.1 lib/enjoy/news/admin/image.rb
enjoy_cms_news-0.4.0 lib/enjoy/news/admin/image.rb
enjoy_cms_news-0.4.0.beta3 lib/enjoy/news/admin/image.rb