All the little details

This commit is contained in:
2015-02-20 23:03:38 +01:00
parent 9eb4f8ee9a
commit 006d840c4e
18 changed files with 87 additions and 28 deletions
@@ -57,6 +57,13 @@ class SupplierEmployeesSettings
end
define_method(attribute){ value }
end
def public_send(m, *args)
if ::Employee::DEFAULT_SETTINGS.has_key?(m.to_s)
::Employee::DEFAULT_SETTINGS[m.to_s]
else
nil # this time we will raise on further invocation, since then there is something wrong
end
end
end
def initialize(all_employees_settings, employee, settings = {})