Permalink
Browse files

refactor requires

  • Loading branch information...
1 parent 3c7b37f commit 448c5c0118c55144cb9da959a582ba28aee6b3ec @Vanuan Vanuan committed Jun 24, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 init.rb
View
@@ -1,8 +1,8 @@
-require 'grit'
-require 'gollum' # min version 1.2.0
require 'redmine'
Rails.configuration.to_prepare do
+ require 'grit'
+ require 'gollum'
require_dependency 'gollum_project_model_patch'
require_dependency 'gollum_projects_helper_patch'
require_dependency 'gollum_projects_controller_patch'
@@ -19,7 +19,6 @@
description 'A gollum plugin for redmine'
# use git to get version name
- require 'grit'
repo = Grit::Repo.new("#{Rails.root}/plugins/redmine_gollum/.git")
version repo.recent_tag_name('HEAD', :tags=>true)

0 comments on commit 448c5c0

Please sign in to comment.