Sha256: c224096b7bca80f9ecfa0807c3b9b7ec798a4687868991e28c11b472e18747f8

Contents?: true

Size: 467 Bytes

Versions: 1

Compression:

Stored size: 467 Bytes

Contents

module ActiveScaffoldDuplicate
  class Engine < ::Rails::Engine
    initializer "active_scaffold_duplicate.action_view" do |app|
      ActiveSupport.on_load :action_view do
        include ActiveScaffold::Helpers::DuplicateHelpers
      end
    end
    initializer 'active_scaffold_duplicate.routes' do
      ActiveSupport.on_load :active_scaffold_routing do
        self::ACTIVE_SCAFFOLD_CORE_ROUTING[:member][:duplicate] = [:post, :get]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_scaffold_duplicate-1.2.0 lib/active_scaffold_duplicate/engine.rb