Module: Labimotion::Helpers::ElementHelpers
- Extended by:
- Grape::API::Helpers
- Defined in:
- lib/labimotion/helpers/element_helpers.rb
Overview
ElementHelpers
Instance Method Summary collapse
Instance Method Details
#klass_list(is_generic_only) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/labimotion/helpers/element_helpers.rb', line 10 def klass_list(is_generic_only) if is_generic_only == true ElementKlass.where(is_active: true, is_generic: true).order('place') || [] else ElementKlass.where(is_active: true).order('place') || [] end end |