Sha256: 03caac2e230ae6fd8036e629315b7a5268bbe952e524595d0fe982cec2aa0c07

Contents?: true

Size: 447 Bytes

Versions: 5

Compression:

Stored size: 447 Bytes

Contents

class RecruiterController  < ApplicationController
  include Recruiter::CrudFlashMessagerHelper

  layout 'recruiter/application'

  protected

  def page
    params[:page]
  end

  def per_page
    params[:per_page]
  end

  def ensure_canonical_url(model, &block)
    canonical_url = url_for(model)

    if canonical_url.to_s == request.original_url.to_s
      instance_eval(&block)
      return
    end

    redirect_to canonical_url
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
recruiter-1.1.18 app/controllers/recruiter_controller.rb
recruiter-1.1.17 app/controllers/recruiter_controller.rb
recruiter-1.1.16 app/controllers/recruiter_controller.rb
recruiter-1.1.15 app/controllers/recruiter_controller.rb
recruiter-1.1.14 app/controllers/recruiter_controller.rb