Sha256: b3a4ed858c25a83b0be259c804d934ca59887b6981c19d0e2ced5cbe6d20f1a8

Contents?: true

Size: 541 Bytes

Versions: 14

Compression:

Stored size: 541 Bytes

Contents

require 'rails/generators/erb/scaffold/scaffold_generator'
require 'ffaker'

module CommonCore
  class InstallGenerator < Rails::Generators::Base
    hook_for :form_builder, :as => :scaffold

    source_root File.expand_path('templates', __dir__)


    def initialize(*args) #:nodoc:
      super
      copy_file "common_core.js", "app/javascript/common_core.js"
      copy_file "common_core.scss", "app/assets/stylesheets/common_core.scss"
      copy_file "_flash_notices.haml", "app/views/layouts/_flash_notices.haml"

    end
  end
end



Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
common_core_js-0.4.7 lib/generators/common_core/install_generator.rb
common_core_js-0.4.6 lib/generators/common_core/install_generator.rb
common_core_js-0.4.4 lib/generators/common_core/install_generator.rb
common_core_js-0.4.3 lib/generators/common_core/install_generator.rb
common_core_js-0.4.2 lib/generators/common_core/install_generator.rb
common_core_js-0.4.1 lib/generators/common_core/install_generator.rb
common_core_js-0.4.0 lib/generators/common_core/install_generator.rb
common_core_js-0.3.9 lib/generators/common_core/install_generator.rb
common_core_js-0.3.8 lib/generators/common_core/install_generator.rb
common_core_js-0.3.7 lib/generators/common_core/install_generator.rb
common_core_js-0.3.6 lib/generators/common_core/install_generator.rb
common_core_js-0.3.5 lib/generators/common_core/install_generator.rb
common_core_js-0.3.4 lib/generators/common_core/install_generator.rb
common_core_js-0.3.3 lib/generators/common_core/install_generator.rb