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 ef1f1ad3d88023d93475dfdce00bd9f230917660
70
N/A
module
PathHelpers
70
N/A
extend
ActiveSupport
::
Concern
286
N/A
70
N/A
included
do
70
N/A
helper_method
:
fancy_repository_path
70
N/A
end
70
N/A
70
N/A
def
fancy_repository_path
(
repository
,
params
)
70
N/A
params
||= {}
70
N/A
action
=
params
[:
action
] || :
files
70
N/A
if
(
params
[:
oid
].
nil
? ||
repository.is
_head
?
(
params
[:
oid
])
)
&&
action
== :
files
70
N/A
repository_tree_path
repository
,
path
:
params
[:
path
]
70
N/A
else
70
N/A
repository_ref_path
repository_id
:
repository
,
oid
:
params
[:
oid
],
action
:
action
,
path
:
params
[:
path
]
70
N/A
end
70
N/A
end
70
N/A
70
N/A
end