module Patches
Constants
- VERSION
Public Class Methods
class_name(path)
click to toggle source
# File lib/patches.rb, line 8 def self.class_name(path) match = path.match(/\d+_(.+?)\.rb/) match[1].camelcase if match end
default_path()
click to toggle source
# File lib/patches.rb, line 4 def self.default_path Rails.root.join('db/patches/') if defined?(:Rails) end
logger()
click to toggle source
# File lib/patches.rb, line 13 def self.logger @logger ||= Logger.new(STDOUT) end
logger=(log)
click to toggle source
# File lib/patches.rb, line 17 def self.logger=(log) @logger = log end