Created
March 10, 2014 15:57
-
-
Save bogn/9467807 to your computer and use it in GitHub Desktop.
short inject statement
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
def self.fully_approved_query_value | |
MultiTenancy.current_version.locales.inject({}) do |result, locale| | |
result.merge(locale.to_s => true) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Exemplary result:
{de: true, en: true, fr: true}