Sha256: d6b2d07e86d65cf428cf8e1ba2d808424251e33ebffe25cec4a4d1f5ccca9fc9
Contents?: true
Size: 1.1 KB
Versions: 13
Compression:
Stored size: 1.1 KB
Contents
require 'spud_core' require 'paperclip' module Spud module Photos class Engine < Rails::Engine engine_name :spud_photos initializer :assets_photos do |config| Rails.application.config.assets.precompile += ["spud/admin/photos*"] end initializer :admin_photos do Spud::Core.config.admin_applications += [{ :name => 'Photo Albums', :thumbnail => 'spud/photos/photo_albums_thumb.png', :url => '/spud/admin/photo_albums', :retina => true, :order => 82 # },{ # :name => 'Photos', # :thumbnail => 'spud/photos/photo_albums_thumb.png', # :url => '/spud/admin/photos', # :retina => true, # :order => 83 }] if Spud::Photos.config.galleries_enabled Spud::Core.config.admin_applications += [{ :name => 'Photo Galleries', :thumbnail => 'spud/photos/photo_albums_thumb.png', :url => '/spud/admin/photo_galleries', :retina => true, :order => 81 }] end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems