Sha256: bf39dc04436a4b55527f165a67d63e5d37e76f2633dea7393a157ba19f741d4d
Contents?: true
Size: 277 Bytes
Versions: 2
Compression:
Stored size: 277 Bytes
Contents
module RailsDash class BaseController < ActionController::Base before_filter :year 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.4 | app/controllers/rails_dash/base_controller.rb |
rails_dash-0.0.3 | app/controllers/rails_dash/base_controller.rb |