Sha256: 614c2336f00bfaf8af3866ebc71f37dd55fb328ae05c4c8fa2bd66bc20975b90

Contents?: true

Size: 285 Bytes

Versions: 50

Compression:

Stored size: 285 Bytes

Contents

module ActiveAdmin
  module Generators
    class PageGenerator < Rails::Generators::NamedBase
      source_root File.expand_path('../templates', __FILE__)

      def generate_config_file
        template "page.rb", "app/admin/#{file_path.tr('/', '_')}.rb"
      end

    end
  end
end

Version data entries

50 entries across 50 versions & 6 rubygems

Version Path
activeadmin-rails-1.7.1 lib/generators/active_admin/page/page_generator.rb
activeadmin-rails-1.7.0 lib/generators/active_admin/page/page_generator.rb
activeadmin-rb-1.6.0 lib/generators/active_admin/page/page_generator.rb
activeadmin-rb-1.5.2 lib/generators/active_admin/page/page_generator.rb
activeadmin-rb-1.5.1 lib/generators/active_admin/page/page_generator.rb
activeadmin-rb-1.5.0 lib/generators/active_admin/page/page_generator.rb
activeadmin_addons-1.7.1 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/generators/active_admin/page/page_generator.rb
activeadmin-rb-1.4.0 lib/generators/active_admin/page/page_generator.rb
activeadmin_addons-1.7.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/generators/active_admin/page/page_generator.rb
activeadmin-1.4.3 lib/generators/active_admin/page/page_generator.rb
activeadmin-1.4.2 lib/generators/active_admin/page/page_generator.rb
activeadmin-1.4.1 lib/generators/active_admin/page/page_generator.rb
activeadmin-1.4.0 lib/generators/active_admin/page/page_generator.rb
activeadmin-1.3.1 lib/generators/active_admin/page/page_generator.rb
activeadmin_addons-1.6.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/generators/active_admin/page/page_generator.rb
activeadmin_addons-1.5.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/lib/generators/active_admin/page/page_generator.rb
activeadmin-1.3.0 lib/generators/active_admin/page/page_generator.rb
activeadmin_addons-1.4.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/lib/generators/active_admin/page/page_generator.rb
activeadmin_addons-1.3.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/generators/active_admin/page/page_generator.rb
activeadmin_addons-1.2.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/generators/active_admin/page/page_generator.rb