Sha256: 6f98638bd46585eb95efede49533c9288e96ffd9e81aaf0aa195d23567413453

Contents?: true

Size: 410 Bytes

Versions: 6

Compression:

Stored size: 410 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('/', '_')}.rb"
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
activeadmin-0.6.6 lib/generators/active_admin/resource/resource_generator.rb
activeadmin-0.6.5 lib/generators/active_admin/resource/resource_generator.rb
activeadmin-0.6.4 lib/generators/active_admin/resource/resource_generator.rb
activeadmin-0.6.3 lib/generators/active_admin/resource/resource_generator.rb
activeadmin-0.6.2 lib/generators/active_admin/resource/resource_generator.rb
activeadmin-0.6.1 lib/generators/active_admin/resource/resource_generator.rb