Bump rails to ~> 4.0.5
Bump to 2.1.8.beta
Use permitted_option_value_attributes instead of permitted_option_type_attributes

Fixes #4772
Fixes an issue where entering 30.49 would preauthorize 3049$.

Fixed by using both the dot (.) and the custom decimal separator for amount parsing.

Fixes #4259