Module: Toolbox::Messages

Includes:
GetText
Defined in:
lib/toolbox/default_controller.rb

Overview

needed for not to conflict with the textdomain from the application controller

Class Method Summary collapse

Class Method Details

.cancelObject



384
385
386
# File 'lib/toolbox/default_controller.rb', line 384

def self.cancel
  _('Cancel')
end

.createObject



376
377
378
# File 'lib/toolbox/default_controller.rb', line 376

def self.create
  _('Create')
end

.createdObject



369
370
371
# File 'lib/toolbox/default_controller.rb', line 369

def self.created
  _('%{object} was successfully created.')
end

.nothing_foundObject



388
389
390
# File 'lib/toolbox/default_controller.rb', line 388

def self.nothing_found
  _('Nothing found')
end

.saveObject



380
381
382
# File 'lib/toolbox/default_controller.rb', line 380

def self.save
  _('Save')
end

.updatedObject



372
373
374
# File 'lib/toolbox/default_controller.rb', line 372

def self.updated
  _('%{object} was successfully updated.')
end