Class: Statesman::MongoidTransitionGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
GeneratorHelpers
Defined in:
lib/generators/statesman/mongoid_transition_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_model_fileObject



17
18
19
# File 'lib/generators/statesman/mongoid_transition_generator.rb', line 17

def create_model_file
  template("mongoid_transition_model.rb.erb", model_file_name)
end