backup commit smart signup form

This commit is contained in:
2015-10-21 18:29:24 +02:00
parent ecf6a3d85a
commit e69b783eb0
7 changed files with 54 additions and 1 deletions
+2
View File
@@ -50,6 +50,8 @@ class Supplier
has_and_belongs_to_many :employees, storing_keys: true
has_many :employee_shifts
view :by_name, key: :name
alias_method :non_enriced_employees, :employees
def employees
@cached_enriched_employees ||= non_enriced_employees.tap { |es| es.each{ |e| e.enrich_with_settings(settings_for(e) ) }}