1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

removed Fixnum reference

Since the Ruby-2.4.0 release, Fixnum and Bignum are combined into Integer class. This fix is to remove all Fixnum reference.
This commit is contained in:
jamespdo 2016-12-28 09:47:58 -08:00
parent fbe8ba610c
commit d01fade4f2
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,7 @@
## master (unreleased)
- ActiveRecord: #joins now show the columns #select'ed [@adrianomitre] - [#211]
- Handles NoMethodError for IRB implicit `ai` [@jtnegrotto] - [#212]
- Replaced Fixnum reference with Integer
## 1.7.0
- Refactoring by extracting formatters into their own classes [@waldyr] - [#237]

View file

@ -28,7 +28,7 @@ module AwesomePrint
# ]
#------------------------------------------------------------------------------
def should_be_limited?
options[:limit] or (options[:limit].is_a?(Fixnum) and options[:limit] > 0)
options[:limit] or (options[:limit].is_a?(Integer) and options[:limit] > 0)
end
def get_limit_size