Sha256: 4f8054bb2207cc9bc250abbb23d6d8377870894eaea5495d7e79af3ba157b850

Contents?: true

Size: 528 Bytes

Versions: 1

Compression:

Stored size: 528 Bytes

Contents

class DummyModelsController < ActionController::Base
  before_filter :get_dummy

  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

1 entries across 1 versions & 1 rubygems

Version Path
commontator-4.10.4 spec/dummy/app/controllers/dummy_models_controller.rb~