Class: TranslationCms::Api::Customers::Department

Inherits:
Base
  • Object
show all
Extended by:
HstoreTranslate::Translates
Defined in:
lib/translation_cms/api/customers/department.rb

Instance Method Summary collapse

Methods inherited from Base

all!, custom_scope!, default_attributes, destroy, dummy_resource!, #method_missing_with_translations_will_change, parsed!, path_with_custom_scope, resource_type!, update

Instance Method Details

#available_onObject



15
16
17
18
19
20
# File 'lib/translation_cms/api/customers/department.rb', line 15

def available_on
  {
    default: !feature_ids.include?(DepartmentFeatureType.hide_unless_order_related.id),
    order_related: !feature_ids.include?(DepartmentFeatureType.hide_if_order_related.id)
  }
end