Sha256: 3f4548ccdc26772284c3e8ae0f10eece56c4ab458df63e486ab99f9311c5b8f7
Contents?: true
Size: 296 Bytes
Versions: 2
Compression:
Stored size: 296 Bytes
Contents
module RailsDash class BaseController < ActionController::Base before_filter :year layout 'dash' protected def year @year = Time.now.year end def page params[:p].present? ? params[:p].to_i : 1 end def filter params[:q] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_dash-0.0.2 | app/controllers/rails_dash/base_controller.rb |
rails_dash-0.0.1 | app/controllers/rails_dash/base_controller.rb |