Class: Georgia::Slide

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Concerns::Contentable, Concerns::Orderable
Defined in:
app/models/georgia/slide.rb

Instance Method Summary collapse

Instance Method Details

#pageObject

Returns a page if revision is a ‘current_revision` for a Georgia::Page



13
14
15
# File 'app/models/georgia/slide.rb', line 13

def page
  @page ||= revision.try(:page)
end