Class: Site

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
SocialStream::Models::Subject
Defined in:
app/models/site.rb

Overview

Site is used to store the global configuration. Example:

Site.config[:host] = 'example.com'
Site.save!

Direct Known Subclasses

Current

Defined Under Namespace

Classes: Current

Class Method Summary collapse

Methods included from SocialStream::Models::Subject

#to_param

Class Method Details

.currentObject



11
12
13
# File 'app/models/site.rb', line 11

def current
  ::Site::Current.instance
end