module FatFreeCRM::Exportable::InstanceMethods
Public Class Methods
included(base)
click to toggle source
# File lib/fat_free_crm/exportable.rb, line 29 def self.included(base) if base.instance_methods.include?(:assignee) || base.instance_methods.include?('assignee') define_method :assigned_to_full_name do user = assignee user ? user.full_name : '' end end if base.instance_methods.include?(:completor) || base.instance_methods.include?('completor') define_method :completed_by_full_name do user = completor user ? user.full_name : '' end end end
Public Instance Methods
user_id_full_name()
click to toggle source
# File lib/fat_free_crm/exportable.rb, line 24 def user_id_full_name user = self.user user ? user.full_name : '' end