Sha256: 00bda222858a42bfc5688862def10b61556675137369e78755acd5bac042cc8a
Contents?: true
Size: 648 Bytes
Versions: 3
Compression:
Stored size: 648 Bytes
Contents
module Birdwatcher module Models class Workspace < Sequel::Model DEFAULT_WORKSPACE_NAME = "default".freeze DEFAULT_WORKSPACE_DESCRIPTION = "Default workspace".freeze one_to_many :users one_to_many :statuses one_to_many :hashtags one_to_many :mentions one_to_many :urls one_to_many :klout_topics def self.create_default_workspace! self.create( :name => DEFAULT_WORKSPACE_NAME, :description => DEFAULT_WORKSPACE_DESCRIPTION ) end def default_workspace? self.name == DEFAULT_WORKSPACE_NAME end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
birdwatcher-0.4.0 | models/workspace.rb |
birdwatcher-0.3.1 | models/workspace.rb |
birdwatcher-0.1.0 | models/workspace.rb |