Class: Skyline::Site

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
app/models/skyline/site.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.find_by_id(id) ⇒ Object



5
6
7
# File 'app/models/skyline/site.rb', line 5

def find_by_id(id)
  self.new
end

Instance Method Details

#<=>(other) ⇒ Object



26
27
28
# File 'app/models/skyline/site.rb', line 26

def <=>(other)
  other.class <=> self.class
end

#named_scope_with_site_for(article_data_class) ⇒ Object



22
23
24
# File 'app/models/skyline/site.rb', line 22

def named_scope_with_site_for(article_data_class)
  {}
end

#pagesObject



14
15
16
# File 'app/models/skyline/site.rb', line 14

def pages
  Skyline::Page
end

#renderer(options = {}) ⇒ Object



18
19
20
# File 'app/models/skyline/site.rb', line 18

def renderer(options = {})
  Skyline::Rendering::Renderer.new(options.merge(:site => self))
end

#rootObject



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

def root
  Skyline::Page.find_by_parent_id(nil)
end