Sha256: 47a9ab1cfade0322e2197c999c03d10c04d60f3725feea4b7e0403a3205512d2

Contents?: true

Size: 420 Bytes

Versions: 73

Compression:

Stored size: 420 Bytes

Contents

module ActiveAdmin
  module Generators
    class ResourceGenerator < Rails::Generators::NamedBase
      desc "Installs ActiveAdmin in a rails 3 application"

      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('/', '_').pluralize}.rb"
      end

    end
  end
end

Version data entries

73 entries across 73 versions & 5 rubygems

Version Path
lalala-4.0.0.dev.59 vendor/deps/active_admin/lib/generators/active_admin/resource/resource_generator.rb
lalala-4.0.0.dev.58 vendor/deps/active_admin/lib/generators/active_admin/resource/resource_generator.rb
lalala-4.0.0.dev.57 vendor/deps/active_admin/lib/generators/active_admin/resource/resource_generator.rb
lalala-4.0.0.dev.56 vendor/deps/active_admin/lib/generators/active_admin/resource/resource_generator.rb
lalala-4.0.0.dev.50 vendor/deps/active_admin/lib/generators/active_admin/resource/resource_generator.rb
lalala-4.0.0.dev.46 vendor/deps/active_admin/lib/generators/active_admin/resource/resource_generator.rb
activeadmin-0.5.1 lib/generators/active_admin/resource/resource_generator.rb
activeadmin-0.5.0 lib/generators/active_admin/resource/resource_generator.rb
activeadmin-0.5.0.pre1 lib/generators/active_admin/resource/resource_generator.rb
activeadmin-0.5.0.pre lib/generators/active_admin/resource/resource_generator.rb
activeadmin-0.4.4 lib/generators/active_admin/resource/resource_generator.rb
activeadmin-0.4.3 lib/generators/active_admin/resource/resource_generator.rb
activeadmin-0.4.2 lib/generators/active_admin/resource/resource_generator.rb
activeadmin-0.4.1 lib/generators/active_admin/resource/resource_generator.rb
activeadmin-0.4.0 lib/generators/active_admin/resource/resource_generator.rb
andrewroth_activeadmin-0.3.4.4 lib/generators/active_admin/resource/resource_generator.rb
andrewroth_activeadmin-0.3.4.3 lib/generators/active_admin/resource/resource_generator.rb
andrewroth_activeadmin-0.3.4.2 lib/generators/active_admin/resource/resource_generator.rb
andrewroth_activeadmin-0.3.4.1 lib/generators/active_admin/resource/resource_generator.rb
andrewroth_activeadmin-0.3.4 lib/generators/active_admin/resource/resource_generator.rb