mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
15 lines
398 B
Ruby
15 lines
398 B
Ruby
module ValidatesTimeliness
|
|
module Generators
|
|
class InstallGenerator < Rails::Generators::Base
|
|
desc "Copy ValidatesTimeliness default files"
|
|
source_root File.expand_path('../templates', __FILE__)
|
|
class_option :template_engine
|
|
|
|
def copy_initializers
|
|
copy_file 'validates_timeliness.rb', 'config/initializers/validates_timeliness.rb'
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|