Sha256: c22bdeef3a05f24b787235bdd9a4b3486855fb1959b19fd844e39315a0879caf

Contents?: true

Size: 311 Bytes

Versions: 35

Compression:

Stored size: 311 Bytes

Contents

module Renalware
  module VersionsHelper
    def who_did_it(model)
      if model.whodunnit
        user_id = model.whodunnit.to_i
        if (user = User.find_by(id: user_id))
          user.full_name
        else
          "User #{user_id}"
        end
      else
        "System"
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc7 app/helpers/renalware/versions_helper.rb
renalware-core-2.0.0.pre.rc6 app/helpers/renalware/versions_helper.rb
renalware-core-2.0.0.pre.rc5 app/helpers/renalware/versions_helper.rb
renalware-core-2.0.0.pre.rc4 app/helpers/renalware/versions_helper.rb
renalware-core-2.0.0.pre.rc3 app/helpers/renalware/versions_helper.rb
renalware-core-2.0.0.pre.rc1 app/helpers/renalware/versions_helper.rb
renalware-core-2.0.0.pre.beta12 app/helpers/renalware/versions_helper.rb
renalware-core-2.0.0.pre.beta11 app/helpers/renalware/versions_helper.rb
renalware-core-2.0.0.pre.beta10 app/helpers/renalware/versions_helper.rb
renalware-core-2.0.0.pre.beta9 app/helpers/renalware/versions_helper.rb
renalware-core-2.0.0.pre.beta8 app/helpers/renalware/versions_helper.rb
renalware-core-2.0.0.pre.beta7 app/helpers/renalware/versions_helper.rb
renalware-core-2.0.0.pre.beta6 app/helpers/renalware/versions_helper.rb
renalware-core-2.0.0.pre.beta5 app/helpers/renalware/versions_helper.rb
renalware-core-2.0.0.pre.beta4 app/helpers/renalware/versions_helper.rb