Class: EasyReports::ReportForm
- Inherits:
-
Object
- Object
- EasyReports::ReportForm
- Includes:
- ActiveModel::Model
- Defined in:
- app/forms/easy_reports/report_form.rb
Instance Attribute Summary collapse
-
#report ⇒ Object
Returns the value of attribute report.
Instance Method Summary collapse
- #database_list ⇒ Object
-
#initialize ⇒ ReportForm
constructor
A new instance of ReportForm.
Constructor Details
#initialize ⇒ ReportForm
Returns a new instance of ReportForm.
13 14 15 16 |
# File 'app/forms/easy_reports/report_form.rb', line 13 def initialize @report = Report.new # @mediator = EasyReports::DatabaseMediator.new(params) end |
Instance Attribute Details
#report ⇒ Object
Returns the value of attribute report.
5 6 7 |
# File 'app/forms/easy_reports/report_form.rb', line 5 def report @report end |
Instance Method Details
#database_list ⇒ Object
18 19 20 |
# File 'app/forms/easy_reports/report_form.rb', line 18 def database_list EasyReports::Database.all end |