Sha256: 34e6201f29e5a62d6b7e5826fd9864e9e0dee42022a3f67dba7d84919b084e27
Contents?: true
Size: 961 Bytes
Versions: 1
Compression:
Stored size: 961 Bytes
Contents
module Refinery module RaceRegistrations class Engine < Rails::Engine include Refinery::Engine isolate_namespace Refinery::RaceRegistrations engine_name :refinery_registrations initializer "register refinerycms_registrations plugin" do Refinery::Plugin.register do |plugin| plugin.name = "refinerycms-registrations" plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.race_registrations_admin_registrations_path } plugin.pathname = root plugin.menu_match = %r{refinery/race_registrations(/.+)?$} end end config.to_prepare do require 'refinerycms-pages' require 'humanizer' require 'csv' Refinery::PagesController.send :include, Refinery::RaceRegistrations::Extensions::PagesController end config.after_initialize do Refinery.register_extension(Refinery::Registrations) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-registrations-0.2.1 | lib/refinery/registrations/engine.rb |