Cross Reference: path_helpers.rb
xref
: /
ontohub
/
app
/
controllers
/
path_helpers.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
path_helpers.rb revision 843b1e0f620247429ef66831a201aabf0fb6db9d
565
N/A
module
PathHelpers
565
N/A
extend
ActiveSupport
::
Concern
565
N/A
565
N/A
included
do
565
N/A
helper_method
:
fancy_repository_path
565
N/A
end
565
N/A
565
N/A
def
fancy_repository_path
(
repository
,
args
)
565
N/A
args
||= {}
565
N/A
action
=
args
[:
action
] || :
files
565
N/A
if
params
[:
ref
].
nil
? &&
action
== :
files
565
N/A
repository_tree_path
repository
,
path
:
args
[:
path
]
565
N/A
else
565
N/A
repository_ref_path
repository_id
:
repository
,
ref
:
args
[:
ref
],
action
:
action
,
path
:
args
[:
path
]
565
N/A
end
565
N/A
end
565
N/A
565
N/A
end