All the little details
This commit is contained in:
@@ -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 = {})
|
||||
|
||||
Reference in New Issue
Block a user