Class: ActiveModel::Generators::Base

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

Overview

:nodoc:

Direct Known Subclasses

ModelGenerator

Class Method Summary collapse

Class Method Details

.source_rootObject



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

def self.source_root
  @_activemodel_source_root ||= File.expand_path(File.join(File.dirname(__FILE__),
                                                'active_model', generator_name, 'templates'))
end