Class: ApplicationRecord

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/generators/templates/application_record.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#inline_forms_attribute_list=(value) ⇒ Object (writeonly)

Sets the attribute inline_forms_attribute_list

Parameters:

  • value

    the value to set the attribute inline_forms_attribute_list to.



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

Returns:

  • (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