Class: Facet
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Facet
- Defined in:
- app/models/facet.rb
Constant Summary collapse
- LABEL_ORDER =
[["ascending", "value ASC, caption ASC"], ["descending", "value DESC, caption DESC"], ["manual", "position"]]
Instance Method Summary collapse
Instance Method Details
#ordered_labels ⇒ Object
14 15 16 17 |
# File 'app/models/facet.rb', line 14 def ordered_labels #self.labels.find(:all, :order => self.label_order) self.labels.order(self.label_order) end |