Last active
August 29, 2015 14:15
-
-
Save bhh/9936e7a5558527b9efaf to your computer and use it in GitHub Desktop.
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
de: | |
flash: | |
actions: | |
create: | |
neuter: asdfasdfasdf | |
male: a | |
female: b | |
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
module GenderHelper | |
def flash_action(action, resource) | |
gender = I18n.t(resource.name.downcase, scope: 'gender') | |
I18n.t(gender, resource_name: resource.class.model_name.human, scope: [:flash, :actions, action]) | |
end | |
end | |
flash_action(:create, User) |
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
de: | |
gender: | |
project: :neuter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment