Sha256: 2cd89c505fbd4dced9909abc1a9cf0e5ce9e81da011fd7af9a4bedb9bfbc5610
Contents?: true
Size: 591 Bytes
Versions: 2
Compression:
Stored size: 591 Bytes
Contents
class DummyModelsController < ActionController::Base before_filter :get_dummy # Workaround for https://github.com/rails/rails/issues/11662 def self.params {} end def hide render :show end def show commontator_thread_show(@dummy_model) end def url_options return Hash.new if request.nil? super end def view_context view_context = view_context_class.new view_context.view_paths = view_paths view_context.controller = self view_context end protected def get_dummy @dummy_model = DummyModel.find(params[:id]) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
commontator-4.10.5 | spec/dummy/app/controllers/dummy_models_controller.rb |
commontator-4.10.4 | spec/dummy/app/controllers/dummy_models_controller.rb |