Sha256: aa93e0f7c2d9fca1752cde97bbfd94396dcdf7c29d246fbaba3f3b5aa33afe51

Contents?: true

Size: 387 Bytes

Versions: 11

Compression:

Stored size: 387 Bytes

Contents

class <%= name.singularize.classify %> < Alchemy::AjaxForm

  validates :check_privacy, inclusion: [true, '1']


  def notify_subject
    I18n.translate(:<%= name.singularize.underscore %>_notify, scope: [:ajax_form_mailer, :subjects])
  end

  def notify_user_subject
    I18n.translate(:<%= name.singularize.underscore %>_user_notify, scope: [:ajax_form_mailer, :subjects])
  end


end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
alchemy-ajax-form-1.2.1 lib/generators/custom_form/templates/app/model/generic_form.rb.tt
alchemy-ajax-form-2.1.0 lib/generators/custom_form/templates/app/model/generic_form.rb.tt
alchemy-ajax-form-2.0.0 lib/generators/custom_form/templates/app/model/generic_form.rb.tt
alchemy-ajax-form-1.2.0 lib/generators/custom_form/templates/app/model/generic_form.rb.tt
alchemy-ajax-form-1.1.5 lib/generators/custom_form/templates/app/model/generic_form.rb.tt
alchemy-ajax-form-1.1.3 lib/generators/custom_form/templates/app/model/generic_form.rb.tt
alchemy-ajax-form-1.1.2 lib/generators/custom_form/templates/app/model/generic_form.rb.tt
alchemy-ajax-form-1.1.1 lib/generators/custom_form/templates/app/model/generic_form.rb.tt
alchemy-ajax-form-1.1.0 lib/generators/custom_form/templates/app/model/generic_form.rb.tt
alchemy-ajax-form-1.0.1 lib/generators/custom_form/templates/app/model/generic_form.rb.tt
alchemy-ajax-form-1.0.0 lib/generators/custom_form/templates/app/model/generic_form.rb.tt