Class: ApplicationRecord

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
InlineForms::Searchable
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.



15
16
17
# File 'lib/generators/templates/application_record.rb', line 15

def inline_forms_attribute_list=(value)
  @inline_forms_attribute_list = value
end

Class Method Details

.not_accessible_through_html?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/generators/templates/application_record.rb', line 34

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



30
31
32
# File 'lib/generators/templates/application_record.rb', line 30

def human_attribute_name(*args)
  self.class.human_attribute_name(*args)
end