Commit e7b512ef authored by http://jneen.net/'s avatar http://jneen.net/

move the path alias to a more appropriate location

parent e08ff468
......@@ -21,11 +21,6 @@ class Snippet < ActiveRecord::Base
format: { with: Gitlab::Regex.file_name_regex,
message: Gitlab::Regex.file_name_regex_message }
# [jneen] alias for compatibility with blobs and highlighting
def path
file_name
end
validates :content, presence: true
validates :visibility_level, inclusion: { in: Gitlab::VisibilityLevel.values }
......@@ -87,6 +82,11 @@ class Snippet < ActiveRecord::Base
0
end
# alias for compatibility with blobs and highlighting
def path
file_name
end
def name
file_name
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment