Class: Bamboolab_contact_form
- Inherits:
-
Object
- Object
- Bamboolab_contact_form
- Defined in:
- lib/bamboolab_contact_form.rb
Instance Method Summary collapse
- #controller ⇒ Object
- #controller_save ⇒ Object
- #helper ⇒ Object
-
#initialize(name, fields, mailer, translations) ⇒ Bamboolab_contact_form
constructor
A new instance of Bamboolab_contact_form.
- #mailer ⇒ Object
- #model ⇒ Object
- #model_save ⇒ Object
- #notice ⇒ Object
- #translation ⇒ Object
- #view ⇒ Object
Constructor Details
#initialize(name, fields, mailer, translations) ⇒ Bamboolab_contact_form
Returns a new instance of Bamboolab_contact_form.
2 3 4 5 6 7 |
# File 'lib/bamboolab_contact_form.rb', line 2 def initialize(name, fields, mailer, translations) @name = name @fields = fields @mailer = mailer @translations = translations end |
Instance Method Details
#controller ⇒ Object
13 14 15 |
# File 'lib/bamboolab_contact_form.rb', line 13 def controller create_controller(@name, @fields, @mailer) end |
#controller_save ⇒ Object
37 38 39 |
# File 'lib/bamboolab_contact_form.rb', line 37 def controller_save create_controller_save(@name, @fields, @mailer) end |
#helper ⇒ Object
17 18 19 |
# File 'lib/bamboolab_contact_form.rb', line 17 def helper create_helper(@name, @fields) end |
#mailer ⇒ Object
25 26 27 |
# File 'lib/bamboolab_contact_form.rb', line 25 def mailer create_mailer(@name, @fields, @mailer) end |
#model ⇒ Object
9 10 11 |
# File 'lib/bamboolab_contact_form.rb', line 9 def model create_model(@name, @fields) end |
#model_save ⇒ Object
33 34 35 |
# File 'lib/bamboolab_contact_form.rb', line 33 def model_save create_model_save(@name, @fields) end |
#notice ⇒ Object
29 30 31 |
# File 'lib/bamboolab_contact_form.rb', line 29 def notice create_notice(@name, @fields, @mailer) end |
#translation ⇒ Object
41 42 43 |
# File 'lib/bamboolab_contact_form.rb', line 41 def translation create_translation(@name, @fields, @translations) end |
#view ⇒ Object
21 22 23 |
# File 'lib/bamboolab_contact_form.rb', line 21 def view create_view(@name, @fields) end |