Sha256: 1f15f1099c8e8253322acbb3e0306bfca147c8fc841ed9afab9a3f9e8a69e5da

Contents?: true

Size: 257 Bytes

Versions: 1

Compression:

Stored size: 257 Bytes

Contents

module Watchtower
  class Data < ActiveRecord::Base
    attr_accessible :content, :name, :primary

    belongs_to :contact, :class_name => "Watchtower::Contact"

    def name
      self[:name] || "other"
    end

    def to_s
      content
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watchtower-0.0.1 app/models/watchtower/data.rb