Class: Cyclid::API::Stage
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Cyclid::API::Stage
- Defined in:
- app/cyclid/models/stage.rb
Overview
Model for Stages
Class Method Summary collapse
-
.all_as_hash ⇒ Object
Return the collection of Stages as an array of Hashes (instead of Stage objects).
Class Method Details
.all_as_hash ⇒ Object
Return the collection of Stages as an array of Hashes (instead of Stage objects)
27 28 29 |
# File 'app/cyclid/models/stage.rb', line 27 def all_as_hash all.to_a.map(&:serializable_hash) end |