public
Created

  • Download Gist
enumerations.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13
Rails.configuration.enumerations = {
slide_types:
Slide.enums.inject({}) do |enum_hash, field|
enum_hash[field] = I18n.t("slide_types.#{field}.name")
end,
 
slides: {
 
recording_on: {
required_slides: [:dialogue],
choices: [:odd_lines, :even_lines, :all_lines]
},

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.