Module: Microservice::Concerns::EntityNaming

Extended by:
ActiveSupport::Concern
Defined in:
app/models/microservice/concerns/entity_naming.rb

Instance Method Summary collapse

Instance Method Details

#button_editObject



81
82
83
# File 'app/models/microservice/concerns/entity_naming.rb', line 81

def button_edit
  I18n.t(:button_entity_edit, entity: self.class.model_name.human)
end

#button_indexObject



45
46
47
# File 'app/models/microservice/concerns/entity_naming.rb', line 45

def button_index
  self.class.button_index
end

#button_newObject



69
70
71
# File 'app/models/microservice/concerns/entity_naming.rb', line 69

def button_new
  self.class.button_new
end

#button_showObject



57
58
59
# File 'app/models/microservice/concerns/entity_naming.rb', line 57

def button_show
  name
end

#heading_editObject



77
78
79
# File 'app/models/microservice/concerns/entity_naming.rb', line 77

def heading_edit
  I18n.t(:heading_entity_edit, entity: self.class.model_name.human)
end

#heading_indexObject



41
42
43
# File 'app/models/microservice/concerns/entity_naming.rb', line 41

def heading_index
  self.class.heading_index
end

#heading_newObject



65
66
67
# File 'app/models/microservice/concerns/entity_naming.rb', line 65

def heading_new
  self.class.heading_new
end

#heading_showObject



53
54
55
# File 'app/models/microservice/concerns/entity_naming.rb', line 53

def heading_show
  I18n.t(:heading_entity_show, entity: self.name)
end

#title_deleteObject



89
90
91
# File 'app/models/microservice/concerns/entity_naming.rb', line 89

def title_delete
  I18n.t(:title_entity_delete, entity: self.name)
end

#title_editObject



85
86
87
# File 'app/models/microservice/concerns/entity_naming.rb', line 85

def title_edit
  I18n.t(:title_entity_edit, entity: self.name)
end

#title_indexObject



49
50
51
# File 'app/models/microservice/concerns/entity_naming.rb', line 49

def title_index
  self.class.title_index
end

#title_newObject



73
74
75
# File 'app/models/microservice/concerns/entity_naming.rb', line 73

def title_new
  self.class.title_new
end

#title_showObject



61
62
63
# File 'app/models/microservice/concerns/entity_naming.rb', line 61

def title_show
  I18n.t(:title_entity_show, entity: self.name)
end