From fa9370d4fbc875c71e8cfc421b828f512fd236fd Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 17 May 2016 22:45:10 +0300 Subject: [PATCH] Fix for symbol placement --- CONTRIBUTING.md | 3 ++- app/Models/Currency.php | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1e26492d5d83..ddac065b56b3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,5 +5,6 @@ We welcome contributions! We'll improve this guide over time... *Please note: although our application is open-source we run a for-profit hosted service at [invoiceninja.com](https://www.invoiceninja.com).* Guidelines -- Please try to follow [PSR-2 guidlines](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) +- Try to follow [PSR-2 guidlines](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) +- Create pull requests against the develop branch - Add translations in our [Transifex](https://www.transifex.com/invoice-ninja/) project diff --git a/app/Models/Currency.php b/app/Models/Currency.php index 944f9f2d8eaf..eb058aa67497 100644 --- a/app/Models/Currency.php +++ b/app/Models/Currency.php @@ -6,8 +6,12 @@ class Currency extends Eloquent { public $timestamps = false; - public function getName() + protected $casts = [ + 'swap_currency_symbol' => 'boolean', + ]; + + public function getName() { return $this->name; - } + } }