Class: Activr::Generators::TimelineGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Activr::Generators::TimelineGenerator
- Defined in:
- lib/generators/activr/timeline_generator.rb
Overview
Generates a Timeline subclass in your Rails application
Instance Method Summary collapse
-
#create_timeline_files ⇒ Object
private
Create the timeline class file.
Instance Method Details
#create_timeline_files ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create the timeline class file
18 19 20 |
# File 'lib/generators/activr/timeline_generator.rb', line 18 def create_timeline_files template "timeline.rb", "#{Activr.config.app_path}/timelines/#{file_name}_timeline.rb" end |