Update devise_generator.rb

Fixed below issue.
NoMethodError: undefined method to_i' for #<Object:0x007fbd818cd750>