diff options
Diffstat (limited to 'app/services/releases/links/base_service.rb')
-rw-r--r-- | app/services/releases/links/base_service.rb | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/app/services/releases/links/base_service.rb b/app/services/releases/links/base_service.rb index 8bab258f80a..4c260e3183f 100644 --- a/app/services/releases/links/base_service.rb +++ b/app/services/releases/links/base_service.rb @@ -18,17 +18,7 @@ module Releases private def allowed_params - @allowed_params ||= params.slice(:name, :url, :link_type).tap do |hash| - hash[:filepath] = filepath if provided_filepath? - end - end - - def provided_filepath? - params.key?(:direct_asset_path) || params.key?(:filepath) - end - - def filepath - params[:direct_asset_path] || params[:filepath] + Params.new(params).allowed_params end end end |