Module: RailsAssist::Artifact::Directory::Methods

Included in:
RailsAssist::Artifact::Directory, RailsAssist::Artifact::Directory
Defined in:
lib/rails_assist/artifact/directory.rb

Constant Summary collapse

DIR =
RailsAssist::Directory
APP_DIR =
RailsAssist::Directory::App

Instance Method Summary collapse

Instance Method Details

#migration_dir(options = {}) ⇒ Object



61
62
63
# File 'lib/rails_assist/artifact/directory.rb', line 61

def migration_dir options={}
  migration_dirpath(options).dir
end

#migration_dirpath(options = {}) ⇒ Object



57
58
59
# File 'lib/rails_assist/artifact/directory.rb', line 57

def migration_dirpath options={}
  [DIR.db_dirpath(options), 'migrate'].file_join
end

#observer_dir(options = {}) ⇒ Object



69
70
71
# File 'lib/rails_assist/artifact/directory.rb', line 69

def observer_dir options={}
  observer_dirpath(options).dir
end

#observer_dirpath(options = {}) ⇒ Object



65
66
67
# File 'lib/rails_assist/artifact/directory.rb', line 65

def observer_dirpath options={}
  model_dir(options).path
end