Class: CNC::CLI::Add
Instance Method Summary
collapse
Methods inherited from Command
exit_on_failure?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name) ⇒ Object
25
26
27
28
|
# File 'lib/cnc/cli/add.rb', line 25
def method_missing(name, ...)
puts "Not found. Falling back to running the template..."
template name
end
|
Instance Method Details
8
9
10
11
|
# File 'lib/cnc/cli/add.rb', line 8
def search
raise "Can only add search when using postgres" unless pg?
template "pg_search"
end
|
15
16
17
|
# File 'lib/cnc/cli/add.rb', line 15
def slugs
template "friendly_id"
end
|
21
22
23
|
# File 'lib/cnc/cli/add.rb', line 21
def versions
template "paper_trail"
end
|