a1dert/lh-tickets-test — Issue #254: NoMethodError in Owner/companies#index error when open companies list in owner panel
Author: a1dert
Created: 2011-11-30 12:00:55+00:00
State: open
Labels: tracker

Imported from lighthouse. Original ticket at: http://redtape.lighthouseapp.com/projects/59696/tickets/349. Created by Alexey Derkach - 2011-07-04T08:38:52Z

Steps to reproduce:
1. Go to Owner panel.
2. Go to Companies page.

Expected: user should see list of companies.
Actual: server error.

Details:
@@@ ruby
undefined method `days’ for “day” : String
@@@
Trace:
@@@ ruby
app/models/payment_profile.rb:94:in `trial_expiration_date’
app/models/payment_profile.rb:90:in `trial_period_remaining’
app/models/payment_profile.rb:86:in `trial?’
app/models/payment_profile.rb:102:in `payment_status’
app/models/company.rb:99:in `__send__’
app/models/company.rb:99:in `payment_status’
app/views/owner/companies/index.html.erb:13:in `_app_views_owner_companies_index_html_erb___1502022980_59548300_0’
app/views/owner/companies/index.html.erb:12:in `_app_views_owner_companies_index_html_erb___1502022980_59548300_0’
@@@

According to: [story 6804](https://tracker.anahoret.com/projects/44/stories/6804 "story 6804")