Module: Basepack::Model
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/basepack/model.rb
Instance Method Summary collapse
- #destroyed? ⇒ Boolean
-
#id ⇒ Object
Always return nil so when using form_for, the default method will be post.
-
#new_record? ⇒ Boolean
Always return true so when using form_for, the default method will be post.
Instance Method Details
#destroyed? ⇒ Boolean
25 26 27 |
# File 'lib/basepack/model.rb', line 25 def destroyed? true end |
#id ⇒ Object
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.
16 17 18 |
# File 'lib/basepack/model.rb', line 16 def new_record? true end |