diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-26 15:01:51 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-26 15:01:51 -0800 |
commit | c916124178645412a554a6b8b39c05bbd42269c8 (patch) | |
tree | d42a3ea6b1b0a9048c609be57a24b2711d9072e3 /lib/extracts_path.rb | |
parent | 6a2384e0bc7d0b703c8f6af144c85af47eae6630 (diff) | |
download | gitlab-ce-c916124178645412a554a6b8b39c05bbd42269c8.tar.gz |
Explicitly set before_filter for ref-related controllers
Diffstat (limited to 'lib/extracts_path.rb')
-rw-r--r-- | lib/extracts_path.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb index e51cb30bdd9..19215cfb7e6 100644 --- a/lib/extracts_path.rb +++ b/lib/extracts_path.rb @@ -1,17 +1,9 @@ # Module providing methods for dealing with separating a tree-ish string and a # file path string when combined in a request parameter module ExtractsPath - extend ActiveSupport::Concern - # Raised when given an invalid file path class InvalidPathError < StandardError; end - included do - if respond_to?(:before_filter) - before_filter :assign_ref_vars - end - end - # Given a string containing both a Git tree-ish, such as a branch or tag, and # a filesystem path joined by forward slashes, attempts to separate the two. # |