Module: AttrJson::Model::CocoonCompat

Extended by:
ActiveSupport::Concern
Defined in:
lib/attr_json/model/cocoon_compat.rb

Overview

Meant for mix-in in a AttrJson::Model class, defines some methods that cocoon insists upon, even though the implementation doesn't really matter for getting cocoon to work with our Models as nested models in forms with cocoon -- the methods just need to be there.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.reflect_on_association(*args) ⇒ Object

cocoon wants this. PR to cocoon to not?



12
13
14
# File 'lib/attr_json/model/cocoon_compat.rb', line 12

def reflect_on_association(*args)
  nil
end

Instance Method Details

#marked_for_destruction?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/attr_json/model/cocoon_compat.rb', line 22

def marked_for_destruction?
  nil
end

#new_record?Boolean

cocoon insists on asking, we don't know the answer, we'll just say 'no' PR to cocoon to not insist on this?

Returns:

  • (Boolean)


19
20
21
# File 'lib/attr_json/model/cocoon_compat.rb', line 19

def new_record?
  nil
end