Sha256: 73b56352759b20d5cbb27fc3917059a4fc9a7c1671accfec372134a7ccb4edc7
Contents?: true
Size: 357 Bytes
Versions: 2
Compression:
Stored size: 357 Bytes
Contents
module Decidim module Results class ResultWidgetsController < Decidim::WidgetsController helper_method :model private def model @model ||= Result.where(feature: params[:feature_id]).find(params[:result_id]) end def iframe_url @iframe_url ||= result_result_widget_url(model) end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
decidim-results-0.0.8.1 | app/controllers/decidim/results/result_widgets_controller.rb |
decidim-0.0.8.1 | decidim-results/app/controllers/decidim/results/result_widgets_controller.rb |