Class: ApplicationRecord
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ApplicationRecord
- Defined in:
- lib/generators/templates/application_record.rb
Instance Attribute Summary collapse
-
#inline_forms_attribute_list ⇒ Object
writeonly
Sets the attribute inline_forms_attribute_list.
Class Method Summary collapse
Instance Method Summary collapse
-
#human_attribute_name(*args) ⇒ Object
Wrapper for @model.human_attribute_name -> Model.human_attribute_name.
Instance Attribute Details
#inline_forms_attribute_list=(value) ⇒ Object (writeonly)
Sets the attribute inline_forms_attribute_list
13 14 15 |
# File 'lib/generators/templates/application_record.rb', line 13 def inline_forms_attribute_list=(value) @inline_forms_attribute_list = value end |
Class Method Details
.not_accessible_through_html? ⇒ Boolean
38 39 40 |
# File 'lib/generators/templates/application_record.rb', line 38 def self.not_accessible_through_html? false end |
Instance Method Details
#human_attribute_name(*args) ⇒ Object
Wrapper for @model.human_attribute_name -> Model.human_attribute_name
34 35 36 |
# File 'lib/generators/templates/application_record.rb', line 34 def human_attribute_name(*args) self.class.human_attribute_name(*args) end |