class Skr::GlPeriod
Public Class Methods
current()
click to toggle source
# File lib/skr/gl_period.rb, line 7 def self.current attr = { year: Time.now.year, period: Time.now.month } GlPeriod.where( attr ).first || GlPeriod.create( attr ) end