module ActiveSerialize
Constants
- VERSION
Public Instance Methods
active_serialize(rmv: [ ], add: [ ], recursive: [ ], pluck: [ ], **configs)
click to toggle source
# File lib/active_serialize.rb, line 15 def active_serialize rmv: [ ], add: [ ], recursive: [ ], pluck: [ ], **configs extend ClassMethods include ToH ::ActiveRecord::Relation.include Relation delegate :active_serialize_keys, :_active_serialize, to: self _active_serialize.merge!(configs) active_serialize_rmv *Array(rmv) active_serialize_add *Array(add) active_serialize_add *Array(recursive), to: :recursive active_serialize_add *Array(pluck), to: :pluck end
active_serialize_default(**args)
click to toggle source
# File lib/active_serialize.rb, line 28 def active_serialize_default **args ActiveSerialize.configs[:default].merge!(args) end