Sha256: e5d542ef5b517fce131862e10408e8f628c0914e8a7aa21a249680555d86b9ca

Contents?: true

Size: 402 Bytes

Versions: 11

Compression:

Stored size: 402 Bytes

Contents

module ActiveAdmin
  module Generators
    class ResourceGenerator < Rails::Generators::NamedBase
      desc "Registers resources with Active Admin"

      def self.source_root
        @_active_admin_source_root ||= File.expand_path("../templates", __FILE__)
      end

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

    end
  end
end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
yousty-activeadmin-1.0.4.pre lib/generators/active_admin/resource/resource_generator.rb
yousty-activeadmin-1.0.3.pre lib/generators/active_admin/resource/resource_generator.rb
active_administration-0.0.3 lib/generators/active_admin/resource/resource_generator.rb
activeadministration-0.0.2 lib/generators/active_admin/resource/resource_generator.rb
active_administration-0.0.2 lib/generators/active_admin/resource/resource_generator.rb
activeadministration-0.0.1 lib/generators/active_admin/resource/resource_generator.rb
active_administration-0.0.1 lib/generators/active_admin/resource/resource_generator.rb
yousty-activeadmin-1.0.2.pre lib/generators/active_admin/resource/resource_generator.rb
yousty-activeadmin-1.0.1.pre lib/generators/active_admin/resource/resource_generator.rb
yousty-activeadmin-1.0.0.pre lib/generators/active_admin/resource/resource_generator.rb
aa-rails4-0.6.0 lib/generators/active_admin/resource/resource_generator.rb