Closed natchiketa closed 9 years ago
I'm using the latest stable version of Ruby and Rails, the comparison of the integer and Rails.version (a string representation of a float) fails. Rather than casting that, use Rails::VERSION::MAJOR which is already an integer.
Rails.version
Rails::VERSION::MAJOR
Thank you so much for this @natchiketa
blogit-admin is still a little premature but we appreciate any help we can get in tightening it up faster.
I'm using the latest stable version of Ruby and Rails, the comparison of the integer and
Rails.version
(a string representation of a float) fails. Rather than casting that, useRails::VERSION::MAJOR
which is already an integer.