Sha256: 245e12f722dfae8f3acf07826b5a5afab72d3b8be8107c33c0ddb8a9c5634208
Contents?: true
Size: 656 Bytes
Versions: 1
Compression:
Stored size: 656 Bytes
Contents
module Rcap module Generators class ModelsGenerator < Rails::Generators::Base desc <<DESC Description: Copy RCAP models to your application. DESC def self.source_root @_rcap_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates')) end def self.banner "rails generate rcap:models" end def copy_model_files directory 'models', 'app/models' end def copy_lib_files copy_file 'modules/rcap.rb', 'lib/rcap.rb' end private def print_usage self.class.help(Thor::Base.shell.new) exit end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rcap-rails-generators-1.3 | lib/generators/rcap/models/models_generator.rb |