Class: AhoyCaptain::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
CompareMode, RangeOptions, Rangeable, Pagy::Backend
Defined in:
app/controllers/ahoy_captain/application_controller.rb

Instance Method Summary collapse

Methods included from CompareMode

#compare_mode?, #comparison_mode, included

Instance Method Details

#periodObject



10
11
12
# File 'app/controllers/ahoy_captain/application_controller.rb', line 10

def period
  params[:period] || AhoyCaptain.config.ranges.default
end