Sha256: 8f51838c96d9c4b0ccfdbdb4664c418f7724a261c4942f12dfb4cdc0419c2580
Contents?: true
Size: 1005 Bytes
Versions: 4
Compression:
Stored size: 1005 Bytes
Contents
module Refinery module Resources class Engine < ::Rails::Engine extend 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.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
4 entries across 4 versions & 1 rubygems