Class: Archangel::Site
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Archangel::Site
- Includes:
- Models::MetatagableConcern
- Defined in:
- app/models/archangel/site.rb
Overview
Site model
Class Method Summary collapse
-
.current ⇒ Object
Current site.
Instance Method Summary collapse
-
#to_liquid ⇒ Object
Liquid object for Site.
Class Method Details
.current ⇒ Object
Current site
45 46 47 48 49 |
# File 'app/models/archangel/site.rb', line 45 def self.current first_or_create do |site| site.name = "Archangel" end end |
Instance Method Details
#to_liquid ⇒ Object
Liquid object for Site
56 57 58 |
# File 'app/models/archangel/site.rb', line 56 def to_liquid Archangel::Liquid::Drops::SiteDrop.new(self) end |