Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

Refactor Reservation Model #614

Merged
merged 8 commits into from
Jul 7, 2014
Merged

Refactor Reservation Model #614

merged 8 commits into from
Jul 7, 2014

Conversation

squidgetx
Copy link
Contributor

  • is_eligible_for_renew
  • max-renew_length
  • replace unnecessary functions with scopes

@squidgetx
Copy link
Contributor Author

sweet

max_renewal_times = Float::INFINITY if max_renewal_times == 'unrestricted'

max_renewal_days = self.equipment_model.maximum_renewal_days_before_due
max_renewal_days = Float::INFINITY if maximum_renewal_days_before_due == 'unrestricted'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the conditional be testing max_renewal_days instead of maximum_renewal_days_before_due?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

@orenyk
Copy link
Contributor

orenyk commented Jul 3, 2014

Code looks good visually, can't currently check out the branch to run tests and make sure nothing seems broken. Nice work!

@dgoerger dgoerger added this to the 3.4.0 milestone Jul 3, 2014
@dgoerger
Copy link
Contributor

dgoerger commented Jul 3, 2014

Looks good! Let's set this for 3.4.0.

dgoerger added a commit that referenced this pull request Jul 7, 2014
@dgoerger dgoerger merged commit db4816c into development Jul 7, 2014
@squidgetx squidgetx deleted the 614_refactor_res branch July 8, 2014 16:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants