Sha256: eaa11b9523f23913bc52dd4a92b7aa75f2650ed1a2e418b25d90b1a8a37072a2

Contents?: true

Size: 726 Bytes

Versions: 14

Compression:

Stored size: 726 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
      self.update_attribute(:deleted_at, Time.now)
    end

    # custom methods
    def nuke!
      self.destroy
    end

    def reactivate
      self.update_attribute(:deleted_at, nil)
    end
    
    # end
  end

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
landable-1.13.1 app/models/concerns/landable/librarian.rb
landable-1.12.3 app/models/concerns/landable/librarian.rb
landable-1.12.2 app/models/concerns/landable/librarian.rb
landable-1.12.1 app/models/concerns/landable/librarian.rb
landable-1.11.1 app/models/concerns/landable/librarian.rb
landable-1.11.0 app/models/concerns/landable/librarian.rb
landable-1.10.0.rc2 app/models/concerns/landable/librarian.rb
landable-1.10.0.rc1 app/models/concerns/landable/librarian.rb
landable-1.9.2 app/models/concerns/landable/librarian.rb
landable-1.9.1 app/models/concerns/landable/librarian.rb
landable-1.9.0 app/models/concerns/landable/librarian.rb
landable-1.9.0.rc2 app/models/concerns/landable/librarian.rb
landable-1.9.0.rc1 app/models/concerns/landable/librarian.rb
landable-1.8.0 app/models/concerns/landable/librarian.rb