Module: DeletedAt::Legacy
- Defined in:
- lib/deleted_at/legacy.rb
Class Method Summary collapse
Class Method Details
.install(model) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/deleted_at/legacy.rb', line 10 def self.install(model) return false unless Core.has_deleted_at_column?(model) install_present_view(model) install_deleted_view(model) end |
.uninstall(model) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/deleted_at/legacy.rb', line 3 def self.uninstall(model) return false unless Core.has_deleted_at_column?(model) uninstall_deleted_view(model) uninstall_present_view(model) end |