app/controllers/papermill_controller.rb in BBenezech-papermill-0.2.2 vs app/controllers/papermill_controller.rb in BBenezech-papermill-0.3.0

- old
+ new

@@ -2,10 +2,11 @@ skip_before_filter :verify_authenticity_token def show begin - asset = PapermillAsset.find(params[:id]) + complete_id = (params[:id0] + params[:id1] + params[:id2]).to_i + asset = PapermillAsset.find(complete_id) raise if asset.nil? || params[:style] == "original" style = Papermill::PAPERMILL_DEFAULTS[:aliases][params[:style]] || !Papermill::PAPERMILL_DEFAULTS[:alias_only] && params[:style] raise unless style if asset.image? \ No newline at end of file