Skip to content

Instantly share code, notes, and snippets.

@csessig86
Created August 1, 2016 16:58
Show Gist options
  • Save csessig86/5ec688f91129475ed3f89a0f6e0a39c4 to your computer and use it in GitHub Desktop.
Save csessig86/5ec688f91129475ed3f89a0f6e0a39c4 to your computer and use it in GitHub Desktop.
Time splitter init with current time zone
extend TimeSplitter::Accessors
split_accessor :start_time, default: ->{Time.zone.parse('00:00:00')}
split_accessor :end_time, default: ->{Time.zone.parse('00:00:00')}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment