Sha256: 9f14c111478aa92ac37de9e485bfb920f6ec1dac199cd923e4941b6cbafb6be2
Contents?: true
Size: 692 Bytes
Versions: 11
Compression:
Stored size: 692 Bytes
Contents
require_dependency Iqvoc::Engine.find_root_with_flag("app").join("app/controllers/rdf_controller").to_s class RdfController def show_with_labels scope = params[:published] == "0" ? Iqvoc::XLLabel.base_class.scoped.unpublished : Iqvoc::XLLabel.base_class.scoped.published if @label = scope.by_origin(params[:id]).with_associations.last respond_to do |format| format.html { redirect_to label_url(:id => @label.origin, :published => params[:published]) } format.any { authorize! :read, @label render "show_label" } end else show_without_labels end end alias_method_chain(:show, :labels) end
Version data entries
11 entries across 11 versions & 1 rubygems