Module: TimeOfDayAttr
- Defined in:
- lib/time_of_day_attr.rb,
lib/time_of_day_attr/railtie.rb,
lib/time_of_day_attr/seconds.rb,
lib/time_of_day_attr/time_format.rb,
lib/time_of_day_attr/time_of_day.rb,
lib/time_of_day_attr/form_builder_extension.rb,
lib/time_of_day_attr/active_record_extension.rb
Defined Under Namespace
Modules: ActiveRecordExtension, AttrWriterModule, FormBuilderExtension, Seconds, TimeFormat, TimeOfDay
Classes: Railtie
Constant Summary
collapse
- DEFAULT_FORMATS =
%i[default hour].freeze
Class Method Summary
collapse
Class Method Details
.delocalize(time_of_day, options = {}) ⇒ Object
14
15
16
|
# File 'lib/time_of_day_attr.rb', line 14
def self.delocalize(time_of_day, options = {})
TimeOfDay.convert_to_seconds(time_of_day, options)
end
|
.localize(seconds, options = {}) ⇒ Object