This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --------------------------------------- | |
# Helpers for creating translated routes | |
# --------------------------------------- | |
module RouteTranslation | |
BASE_LOCALES = [:de, :'de-CH'] | |
URL_PREFIX_LOCALES = [:'fr-CH'] | |
LOCALES = [BASE_LOCALES, URL_PREFIX_LOCALES].flatten |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Error: | |
test_a_translated_attribute_reader_returns_the_correct_translation_for_a_saved_record_after_locale_switching(AttributesTest): | |
ActiveRecord::StatementInvalid: SQLite3::SQLException: no such column: title: UPDATE "posts" SET "title" = 'Titel' WHERE "posts"."id" = 2 | |
/Users/nico/.rvm/gems/ruby-1.9.2-p290/gems/sqlite3-1.3.4/lib/sqlite3/database.rb:91:in `initialize' | |
/Users/nico/.rvm/gems/ruby-1.9.2-p290/gems/sqlite3-1.3.4/lib/sqlite3/database.rb:91:in `new' | |
/Users/nico/.rvm/gems/ruby-1.9.2-p290/gems/sqlite3-1.3.4/lib/sqlite3/database.rb:91:in `prepare' | |
/Users/nico/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.1/lib/active_record/connection_adapters/sqlite_adapter.rb:227:in `block in exec_query' | |
/Users/nico/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract_adapter.rb:244:in `block in log' | |
/Users/nico/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument' | |
/Users/nico/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-diff --git a/app/models/pdf_container.rb b/app/models/pdf_container.rb | |
-index 7187e3f..a871181 100644 | |
---- a/app/models/pdf_container.rb | |
-+++ b/app/models/pdf_container.rb | |
-@@ -133,12 +133,16 @@ class PdfContainer < Variant | |
- pdf.text picture.title | |
- pdf.text picture.year | |
- pdf.text picture.technique | |
-- pdf.text picture.edition | |
-+ unless picture.edition.blank? |
NewerOlder