Sha256: 5f645ff398f7be87f1e5c3ce1bcf8378b50760ff432d14d4a0a160137fb641f9
Contents?: true
Size: 566 Bytes
Versions: 3
Compression:
Stored size: 566 Bytes
Contents
require 'rails/generators/base' module ModelBase class InstallGenerator < ::Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) desc "Generate files to work with model_base" FILES = [ 'app/controllers/concerns/authentication.rb', 'spec/factories/users.rb', 'spec/support/controller_macros.rb', 'spec/support/devise.rb', 'spec/support/field_assertions.rb', 'spec/support/time_match_support.rb', ].freeze def generate_files FILES.each{|f| template f, f } end end end
Version data entries
3 entries across 3 versions & 1 rubygems