Sha256: 5cefb178271f168e34e351ab7cc775535fe1ea2936bb81d0b3222154bc6e527a
Contents?: true
Size: 466 Bytes
Versions: 4
Compression:
Stored size: 466 Bytes
Contents
module Schemable class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../../templates', __dir__) def initialize(*args) super(*args) end def copy_initializer target_path = 'config/initializers/schemable.rb' if Rails.root.join(target_path).exist? say_status('skipped', 'Schemable initializer already exists') else copy_file('schemable.rb', target_path) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems