module DeletedAt
Constants
- DEFAULT_OPTIONS
- MissingColumn
- VERSION
Attributes
disabled[R]
logger[W]
Public Class Methods
disable()
click to toggle source
# File lib/deleted_at.rb, line 31 def self.disable @disabled = true end
disabled?()
click to toggle source
# File lib/deleted_at.rb, line 27 def self.disabled? @disabled == true end
enable()
click to toggle source
# File lib/deleted_at.rb, line 35 def self.enable @disabled = false end
gemspec()
click to toggle source
# File lib/deleted_at.rb, line 39 def self.gemspec @gemspec ||= eval(`gem spec deleted_at --ruby`).freeze end
install(model)
click to toggle source
# File lib/deleted_at.rb, line 43 def self.install(model) logger.warn <<-STR Great news! You're using the new and improved version of DeletedAt. No more table renaming. You'll want to migrate your old models to use the new (non-view based) functionality. Follow the instructions at #{gemspec.homepage}. STR end
logger()
click to toggle source
# File lib/deleted_at.rb, line 17 def logger @logger ||= Logger.new($stdout).tap do |log| log.progname = self.name log.level = Logger::INFO end end
uninstall(model)
click to toggle source
# File lib/deleted_at.rb, line 51 def self.uninstall(model) end