Module: Toolbox::Messages

Includes:
GetText::Rails
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



362
363
364
# File 'lib/toolbox/default_controller.rb', line 362

def self.cancel
  _('Cancel')
end

.createObject



354
355
356
# File 'lib/toolbox/default_controller.rb', line 354

def self.create
  _('Create')
end

.createdObject



347
348
349
# File 'lib/toolbox/default_controller.rb', line 347

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

.nothing_foundObject



366
367
368
# File 'lib/toolbox/default_controller.rb', line 366

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

.saveObject



358
359
360
# File 'lib/toolbox/default_controller.rb', line 358

def self.save
  _('Save')
end

.updatedObject



350
351
352
# File 'lib/toolbox/default_controller.rb', line 350

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