Class: SlideshowAnchor
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- SlideshowAnchor
- Defined in:
- app/models/slideshow_anchor.rb
Overview
Defines a relationship between a BitCore::Slideshow and a “target”, which for now is limited to the home screen of a Participant.
Constant Summary collapse
- TARGET_NAMES =
%w(home_intro).freeze
Class Method Summary collapse
Class Method Details
.fetch(target_name) ⇒ Object
14 15 16 |
# File 'app/models/slideshow_anchor.rb', line 14 def self.fetch(target_name) find_by_target_name(target_name.to_s).try(:slideshow) end |