Sha256: 939952d4f00257b7f3bfbe85f16fbf6e5eef3e91fa506efa2428aa98490c8181

Contents?: true

Size: 247 Bytes

Versions: 5

Compression:

Stored size: 247 Bytes

Contents

module Jobshop
  module ApplicationHelper
    def body_class
      @body_class ||= if params.has_key?(:page)
        "static-#{params[:page]}"
      elsif controller_name == "sessions"
        "sessions-#{action_name}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jobshop-0.0.11 app/helpers/jobshop/application_helper.rb
jobshop-0.0.10 app/helpers/jobshop/application_helper.rb
jobshop-0.0.9 app/helpers/jobshop/application_helper.rb
jobshop-0.0.7 app/helpers/jobshop/application_helper.rb
jobshop-0.0.6 app/helpers/jobshop/application_helper.rb