signature_tracking.rb
def has_signature_by?(check_user = nil)
        if check_user and self.signatures.detect { |s| s.user_id == check_user.id and s.physician.nil? }
          true
        else
          false
        end
      end
##
# Checks to see if a particular user has signed a model. Requires the
# actual User associated.
#
Checks to see if a particular user has signed a model. Requires the
actual User associated.
Checks to see if a particular user has signed a model . Requires the actual User associated .
def has_signature_by?(check_user = nil)
        if check_user and self.signatures.detect { |s| s.user_id == check_user.id and s.physician.nil? }
          true
        else
          false
        end
      end
def has_signature_by? ( check_user = nil ) if check_user and self . signatures . detect { | s | s . user_id == check_user . id and s . physician . nil? } true else false end end
Checks to see if a particular user has signed a model.
Checks to see if a particular user has signed a model .
check_user