Sha256: 83a84dc9146b80c2204fadab3f8a2a3c9c7ab2ce56737505f957500acea098fb
Contents?: true
Size: 1.02 KB
Versions: 8
Compression:
Stored size: 1.02 KB
Contents
module Refinery module Resources class Engine < ::Rails::Engine include Refinery::Engine isolate_namespace Refinery engine_name :refinery_resources config.autoload_paths += %W( #{config.root}/lib ) initializer 'attach-refinery-resources-with-dragonfly', :after => :load_config_initializers do |app| ::Refinery::Resources::Dragonfly.configure! ::Refinery::Resources::Dragonfly.attach!(app) end initializer "register refinery_files plugin" do Refinery::Plugin.register do |plugin| plugin.pathname = root plugin.name = 'refinery_files' plugin.menu_match = /refinery\/(refinery_)?(files|resources)$/ plugin.version = %q{2.0.0} plugin.activity = { :class_name => :'refinery/resource' } plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.admin_resources_path } end end config.after_initialize do Refinery.register_extension(Refinery::Resources) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems