Module: PublicActivity::Generators::Base

Included in:
MigrationGenerator, MigrationUpgradeGenerator
Defined in:
lib/generators/public_activity.rb

Overview

A base module

Instance Method Summary collapse

Instance Method Details

#source_rootObject

Get path for migration template



11
12
13
# File 'lib/generators/public_activity.rb', line 11

def source_root
  @_public_activity_source_root ||= File.expand_path(File.join('../public_activity', generator_name, 'templates'), __FILE__)
end