Sha256: f0510ba72e1f0f1c8f182d5c511ce0d78229eeaa194dc1b6ecf72abf0a28c2d7
Contents?: true
Size: 460 Bytes
Versions: 6
Compression:
Stored size: 460 Bytes
Contents
require 'schedule_attributes/core' module ScheduleAttributes::Model extend ActiveSupport::Concern include ScheduleAttributes::Core module ClassMethods attr_accessor :schedule_field end included do @schedule_field ||= ScheduleAttributes::DEFAULT_ATTRIBUTE_KEY end private def read_schedule_field send(self.class.schedule_field) end def write_schedule_field(value) send("#{self.class.schedule_field}=", value) end end
Version data entries
6 entries across 6 versions & 2 rubygems