Class: ActiveRecord::Tablefree::CastType

Inherits:
Object
  • Object
show all
Defined in:
lib/activerecord/tablefree/cast_type.rb

Instance Method Summary collapse

Instance Method Details

#assert_valid_value(*_args) ⇒ Object


3
4
5
# File 'lib/activerecord/tablefree/cast_type.rb', line 3

def assert_valid_value(*_args)
  true
end

#cast(args) ⇒ Object


16
17
18
# File 'lib/activerecord/tablefree/cast_type.rb', line 16

def cast(args)
  args
end

#changed?(*_args) ⇒ Boolean

Returns:

  • (Boolean)

20
21
22
# File 'lib/activerecord/tablefree/cast_type.rb', line 20

def changed?(*_args)
  false
end

#changed_in_place?(*_args) ⇒ Boolean

Returns:

  • (Boolean)

24
25
26
# File 'lib/activerecord/tablefree/cast_type.rb', line 24

def changed_in_place?(*_args)
  false
end

#deserialize(args) ⇒ Object


12
13
14
# File 'lib/activerecord/tablefree/cast_type.rb', line 12

def deserialize(args)
  args
end

#serialize(args) ⇒ Object

Needed for Rails 5.0


8
9
10
# File 'lib/activerecord/tablefree/cast_type.rb', line 8

def serialize(args)
  args
end