Sha256: 55c3de69b2585361114eca46f678baf45ad5da802a12a7f84347f23942fb2671

Contents?: true

Size: 258 Bytes

Versions: 1

Compression:

Stored size: 258 Bytes

Contents

class <%= model_class_name %> < ActiveRecord::Base
  
  def to_rich_cms_response(params)
    {:value => value, :translations => Hash[*params[:derivative_keys].split(";").uniq.collect{|x| [x, x.t({:as => params[:editable_input_type]})]}.flatten]}
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rich_i18n-1.2.3 rails_generators/rich_i18n_translation/templates/model.rb