Method: Postshift::Schema.output_location
- Defined in:
- lib/postshift/schema.rb
.output_location ⇒ Object
68 69 70 71 72 73 74 75 76 |
# File 'lib/postshift/schema.rb', line 68 def self.output_location if defined?(Rails) File.join(Rails.root, 'db', FILENAME) else base_path = File.join(Postshift.root, 'tmp') Dir.mkdir(base_path) unless Dir.exist?(base_path) File.join(base_path, FILENAME) end end |