Sha256: 53aab9746b8da60b44b5e76bcc1037f877a08b6e9e8c8b2d5504ee3b9c588e48

Contents?: true

Size: 601 Bytes

Versions: 9

Compression:

Stored size: 601 Bytes

Contents

require 'rails/generators'

module SimpleAdmin
  class AssetsGenerator < Rails::Generators::Base
    desc <<-CONTENT
    This will install the admin assets into your public \
    folder. If you want to move these files you can adjust \
    your config/initializer/simple_admin.rb and modify the \
    config.javascripts and config.stylesheets. \
    \
    The default theme comes from ActiveAdmin.

    CONTENT

    def self.source_root
      File.join(File.dirname(__FILE__), '..', '..', '..', '..', '..')
    end

    def copy_assets_folder
      directory 'app/assets', 'public'
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
simple_admin-0.7.1 lib/rails/generators/simple_admin/assets/assets_generator.rb
simple_admin-0.6.0 lib/rails/generators/simple_admin/assets/assets_generator.rb
simple_admin-0.5.2 lib/rails/generators/simple_admin/assets/assets_generator.rb
simple_admin-0.5.1 lib/rails/generators/simple_admin/assets/assets_generator.rb
simple_admin-0.5.0 lib/rails/generators/simple_admin/assets/assets_generator.rb
simple_admin-0.4.1 lib/rails/generators/simple_admin/assets/assets_generator.rb
simple_admin-0.4.0 lib/rails/generators/simple_admin/assets/assets_generator.rb
simple_admin-0.3.1 lib/rails/generators/simple_admin/assets/assets_generator.rb
simple_admin-0.3.0 lib/rails/generators/simple_admin/assets/assets_generator.rb