Skip to content

Commit

Permalink
Merge branch 'release/0.6.15.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
kalashnikovisme committed Apr 24, 2016
2 parents 058ed5d + f73276d commit 4d4c2d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/helpers/web/admin/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def admin_record_path(instance)
end

def record_title(instance)
[t("activerecord.models.#{instance.record_type&.underscore}"), decorator_class(instance.record_type).decorate(instance.record).name].join ': '
unless instance&.action_type.in? [ 'sign_in', 'sign_out' ]
[t("activerecord.models.#{instance.record_type&.underscore}"), decorator_class(instance.record_type).decorate(instance.record).name].join ': '
end
end
end

0 comments on commit 4d4c2d5

Please sign in to comment.