Sha256: 7a90a4eb5669df5de388f2e0af9195a710a9bf6c095119b605f15defed31a10a

Contents?: true

Size: 703 Bytes

Versions: 2

Compression:

Stored size: 703 Bytes

Contents

module Landable
  # modules
  module Librarian
    # The original name for this module was Landable::JamesCole, but Isaac said 'no.'
    # if this name confuses you, go watch "12 Monkeys" you class-less savage.
    # Wait, where were you in 95? Prison? The womb? Ohmygawd, that was a great film.

    # extensions
    extend ActiveSupport::Concern

    # includes
    included do
    end

    # validations

    # standard methods
    def deactivate
      update_attribute(:deleted_at, Time.now)
    end

    # custom methods
    def nuke!
      destroy
    end

    def reactivate
      update_attribute(:deleted_at, nil)
    end

    # end
  end

  # Live Long the Army of the 12 Monkeys!
  # end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
landable-1.14.0 app/models/concerns/landable/librarian.rb
landable-1.13.2 app/models/concerns/landable/librarian.rb