Sha256: 2eb8ba46605bcfd424a6acf15988e6949638d20dd06bf3d66ef7ae3871dbc5b5

Contents?: true

Size: 501 Bytes

Versions: 6

Compression:

Stored size: 501 Bytes

Contents

class DummyModelsController < ActionController::Base
  before_filter :get_dummy
  
  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 = DummyModel.find(params[:id])
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
commontator-1.1.1 spec/dummy/app/controllers/dummy_models_controller.rb~
commontator-1.1.0 spec/dummy/app/controllers/dummy_models_controller.rb~
commontator-1.0.6 spec/dummy/app/controllers/dummy_models_controller.rb~
commontator-1.0.5 spec/dummy/app/controllers/dummy_models_controller.rb~
commontator-1.0.4 spec/dummy/app/controllers/dummy_models_controller.rb~
commontator-1.0.3 spec/dummy/app/controllers/dummy_models_controller.rb~