Sha256: b0cd052d316595445196d856c9421ac1c3550a98eb2912630b4d7b34a47f8922
Contents?: true
Size: 646 Bytes
Versions: 4
Compression:
Stored size: 646 Bytes
Contents
module Ecoportal module API class V2 class Page class Stages < Common::Content::CollectionModel class_resolver :stage_class, "Ecoportal::API::V2::Page::Stage" self.klass = :stage_class def get_by_name(name) self.find do |stage| same_string?(stage.name, name) end end #def ordered # self.each_with_index.sort_by do |stage, index| # (stage.ordering >= 9999) ? [index, index] : [stage.ordering, index] # end.map(&:first) #end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems