fix id issues
This commit is contained in:
parent
b1ab9dfb9d
commit
b694dbc73d
|
|
@ -84,7 +84,7 @@ class DotationsController < ApplicationController
|
|||
|
||||
# Use callbacks to share common setup or constraints between actions.
|
||||
def set_dotation
|
||||
@dotation = Dotation.find(params[:id])
|
||||
@dotation = Dotation.friendly.find(params[:id])
|
||||
end
|
||||
|
||||
def prepare_dependencies
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
# helper for home
|
||||
module HomeHelper
|
||||
def change_ammount(ammount)
|
||||
return '' if ammount.blank?
|
||||
|
||||
ret = if ammount >= 1_000_000
|
||||
"#{ammount / 1_000_000} mln"
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue