Sha256: 4124a8c045e78b74aead5e56a148b5dff5f3b36b90a98e2e202fa5a251b55b1c

Contents?: true

Size: 296 Bytes

Versions: 31

Compression:

Stored size: 296 Bytes

Contents

# Site is used to store the global configuration. Example:
# 
#   Site.config[:host] = 'example.com'
#   Site.save!
class Site < ActiveRecord::Base
  attr_accessible :config

  serialize :config, Hash

  class << self
    def current
      @current ||=
        first || create!
    end
  end
end

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
social_stream-1.1.12 base/app/models/site.rb
social_stream-base-1.1.11 app/models/site.rb
social_stream-1.1.11 base/app/models/site.rb
social_stream-base-1.1.10 app/models/site.rb
social_stream-1.1.10 base/app/models/site.rb
social_stream-base-1.1.9 app/models/site.rb
social_stream-1.1.9 base/app/models/site.rb
social_stream-base-1.1.8 app/models/site.rb
social_stream-1.1.8 base/app/models/site.rb
social_stream-base-1.1.7 app/models/site.rb
social_stream-1.1.7 base/app/models/site.rb
social_stream-base-1.1.6 app/models/site.rb
social_stream-1.1.6 base/app/models/site.rb
social_stream-base-1.1.5 app/models/site.rb
social_stream-1.1.5 base/app/models/site.rb
social_stream-base-1.1.4 app/models/site.rb
social_stream-1.1.4 base/app/models/site.rb
social_stream-1.1.3 base/app/models/site.rb
social_stream-base-1.1.3 app/models/site.rb
social_stream-1.1.2 base/app/models/site.rb