mobility icon indicating copy to clipboard operation
mobility copied to clipboard

Pluggable Ruby translation framework

Results 73 mobility issues
Sort by recently updated
recently updated
newest added

To me this seems not to break anything and fixes #569 Please note I did not update existing specs that explicitly test that translations have been created on read, which...

Let's say the Translation model includes acts_as_paranoid. Typical Rails `Base.all.joins(:translations)` will correctly have `INNER JOIN ... ON ... ."deleted_at" IS NULL` However, the scopes/queries generated by Mobility will not include...

table_backend

i.e. ```ruby Mobility.locale = :en Post.i18n.where(title: "foo") ``` ...should return the post with title "foo" in English if a post with title in English exists, if not it should find...

feature

I am using fallbacks. One of my locales is "en-GB", and I think the I18n fallbacks defaults to "en" as a fallback. However this bug exists also without fallbacks, it's...

Hi, I'm opening this issue to track an issue I've found with `order` clause on multiple columns ## Context ActiveRecord 7.0 Mobility 1.2.6 ## Issue 1 - 1st parameter is...

bug

There seems to be an issue with attr readers in some configuration of model after_create/save hooks. See also original issue https://github.com/mrbrdo/spree_mobility/issues/6 Code triggering the issue (in Spree project if you...

## Context Using Rails 6.1 and combining the `attribute_methods` plugin from master with `Model.select(:name)` when you have other fields that are translateable, it would raise ActiveRecord::MissingAttributeError as you are not...

bug

As pointed out in #481, I18n fallbacks [are lazy-initialized by default](https://github.com/ruby-i18n/i18n/blob/4709391dceab9096d5988576f93935843023a6ef/lib/i18n/locale/fallbacks.rb#L71). This can be problematic in production environments, particularly with forking appservers, since: 1. The first request pays the initialization...

Alternative to https://github.com/shioyama/mobility/pull/482

This is a simple change which allows plugins to simply define modules `BackendMethods` and/or `BackendClassMethods` and have the backend class auto-include/extend these modules. This simplifies something like this: ```ruby module...