Module: Basepack::Model

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

Instance Method Summary collapse

Instance Method Details

#destroyed?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/basepack/model.rb', line 25

def destroyed?
  true
end

#idObject

Always return nil so when using form_for, the default method will be post.



21
22
23
# File 'lib/basepack/model.rb', line 21

def id
  nil
end

#new_record?Boolean

Always return true so when using form_for, the default method will be post.

Returns:

  • (Boolean)


16
17
18
# File 'lib/basepack/model.rb', line 16

def new_record?
  true
end