Class: Activr::Generators::TimelineGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/activr/timeline_generator.rb

Overview

Generates a Timeline subclass in your Rails application

Instance Method Summary collapse

Instance Method Details

#create_timeline_filesObject

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