Sha256: c9d630c0e22330393ffb2387ff27ebd0398ae513bb2519fecc7dc1f783cd20c5

Contents?: true

Size: 494 Bytes

Versions: 4

Compression:

Stored size: 494 Bytes

Contents

class ApplicationTransForm < TransForms::FormBase
  # Here you can place application specific code to customize the
  # default behavior of TransForms.
  #
  # Here is an example of a custom instantiator that works to set
  # a model and current_user attributes in addition to the params
  # which might come directly from the controller.
  #
  #   def self.new_in_model(model, params = {}, current_user = nil)
  #     new(params.merge(model: model, current_user: current_user))
  #   end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trans_forms-0.2.2 lib/generators/rails/templates/application_trans_form.rb
trans_forms-0.2.1 lib/generators/rails/templates/application_trans_form.rb
trans_forms-0.2.0 lib/generators/rails/templates/application_trans_form.rb
trans_forms-0.1.0 lib/generators/rails/templates/application_trans_form.rb