app/helpers/github_url_helper.rb in shipit-engine-0.1.0 vs app/helpers/github_url_helper.rb in shipit-engine-0.2.0

- old
+ new

@@ -1,10 +1,6 @@ module GithubUrlHelper - def github_url - "https://github.com" - end - def github_avatar(user, options = {}) uri = user.avatar_uri attributes = options.slice(:class).merge(alt: user.try!(:name)) if options[:size] uri.query ||= '' @@ -19,10 +15,10 @@ def github_commit_range_url(stack, since_commit, until_commit) github_repo_url(stack.repo_owner, stack.repo_name, 'compare', "#{since_commit.sha}...#{until_commit.sha}") end def github_user_url(user, *args) - [github_url, user, *args].join('/') + [Shipit.github_url, user, *args].join('/') end def render_github_user(user) link_to(github_user_url(user.login), class: 'user main-user') do github_avatar(user, size: 20) + user.name