Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: rrrene/freight-exchange
base: 267c733691
...
head fork: rrrene/freight-exchange
compare: dd1a6ecaaf
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
View
2  app/views/postings/_show_attribute.html.erb
@@ -8,7 +8,7 @@
<div class="history_step history_step_<%= @history.index(opts[:item]) %>">
<div class="history_step_info">
<b><%= l opts[:item].updated_at %></b>
- <%= opts[:item].user.name %>:
+ <%= opts[:item].try(:user).try(:name) %>:
</div>
<%= opts[:after] %>
</div>
View
4 lib/tasks/demo.thor
@@ -73,7 +73,9 @@ module App
%w(users loading_spaces freights).each do |assoc|
logger.info "#{assoc.classify.pluralize}: ".ljust(20) + company.__send__(assoc).count.to_s
end
- logger.info "Notifications/user: ".ljust(20) + company.users.first.unread_notification_items.count.to_s
+ user = company.users.first
+ count = user ? user.unread_notification_items.count : nil
+ logger.info "Notifications/user: ".ljust(20) + count.to_s
end
private

No commit comments for this range

Something went wrong with that request. Please try again.