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