Sha256: 064c6448480e338842ef1f7e9abbf66d6d7079eb5ad00b81635c467bc6426141
Contents?: true
Size: 271 Bytes
Versions: 2
Compression:
Stored size: 271 Bytes
Contents
# frozen_string_literal: true module MKIt module PodsHelper def find_by_id_or_name pod = Pod.find_by_id(params[:id]) pod ||= Pod.find_by_name(params[:id]) error 404, "Couldn't find Pod '#{params[:id]}'\n" unless pod pod end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mkit-0.9.0 | lib/mkit/app/helpers/pods_helper.rb |
mkit-0.8.0 | lib/mkit/app/helpers/pods_helper.rb |