Sha256: 29dd0f798a70aab49416cef353513ca2b3735a6596120bb45878a5968138b502

Contents?: true

Size: 366 Bytes

Versions: 7

Compression:

Stored size: 366 Bytes

Contents

module Draper
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path("templates", __dir__)

      desc 'Creates an ApplicationDecorator, if none exists.'

      def create_application_decorator
        file = 'application_decorator.rb'
        copy_file file, "app/decorators/#{file}"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
draper-4.0.4 lib/generators/draper/install_generator.rb
draper-4.0.3 lib/generators/draper/install_generator.rb
draper-4.0.2 lib/generators/draper/install_generator.rb
draper-4.0.1 lib/generators/draper/install_generator.rb
draper-4.0.0 lib/generators/draper/install_generator.rb
draper-3.1.0 lib/generators/draper/install_generator.rb
draper-3.0.1 lib/generators/draper/install_generator.rb