From b17387a17669bfc9afce7435653cd8c29c686999 Mon Sep 17 00:00:00 2001 From: Azul Date: Sat, 12 Jul 2014 09:12:48 +0200 Subject: some cleanup of the messages api and cuke feature --- config/initializers/add_controller_methods.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'config') diff --git a/config/initializers/add_controller_methods.rb b/config/initializers/add_controller_methods.rb index f107544..4ad4213 100644 --- a/config/initializers/add_controller_methods.rb +++ b/config/initializers/add_controller_methods.rb @@ -2,5 +2,6 @@ ActiveSupport.on_load(:application_controller) do include ControllerExtension::Authentication include ControllerExtension::TokenAuthentication include ControllerExtension::Flash + include ControllerExtension::JsonResponses include ControllerExtension::Errors end -- cgit v1.2.3 From 150c80bfc7c469b23f7ac1bac0e42014ad417df6 Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 14 Jul 2014 17:26:28 +0200 Subject: add translation and fix tests --- config/locales/errors.en.yml | 1 + config/locales/messages.en.yml | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 config/locales/messages.en.yml (limited to 'config') diff --git a/config/locales/errors.en.yml b/config/locales/errors.en.yml index 93feab1..e0a909f 100644 --- a/config/locales/errors.en.yml +++ b/config/locales/errors.en.yml @@ -9,3 +9,4 @@ en: text: not_found: "You may have mistyped the address or the page may have moved." server_error: The problem has been logged and we will look into it. + not_found: Not found. diff --git a/config/locales/messages.en.yml b/config/locales/messages.en.yml new file mode 100644 index 0000000..d9d7613 --- /dev/null +++ b/config/locales/messages.en.yml @@ -0,0 +1,4 @@ +en: + messages: + not_found: That message could not be found. + marked_as_read: Message has been marked as read. -- cgit v1.2.3