Chris Salzberg
Chris Salzberg
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...
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...
It makes sense to include the query scope automatically in the find_by methods (`find_by_title` etc) so they work out of the box. Assume `title` is a translated attribute: _Before_ ```ruby...
Because every good open-source project has a dedicated website :rofl:
This is a major API change coming for v1.0. Backends will now return the locale and value from `read` and `write` methods. This allows for better handling when using things...
Currently, we test backends together in a test run. This is problematic for cases where, for example, a required file is not loaded within a class, since this can be...
Fixes [Bug [#18960](https://bugs.ruby-lang.org/issues/18960)] Allow refinements to be used at the toplevel within a script that is loaded under a module.
This seems to be a duplicate entry. We've encountered an issue where the second entry triggers a warning here: https://github.com/mime-types/ruby-mime-types/blob/5b931d70d74f3d1ba25babac03237ae450ca5c5b/lib/mime/types.rb#L189-L193 ```ruby if !quiet && @type_variants[type.simplified].include?(type) MIME::Types.logger.warn
This adds some missing features that Komoju now supports: - tokens (`store` method) (to enable payment profiles) - partial refunds - support for Diner's Club - locale - support for...