Sometimes you need to find records which field is not equal to given value or isNULL. And instead of writing something like:
NULL
User.where('email != ? OR email IS NULL', 'test@example.com')
When it comes to add Facebook login to Rails application there’re tons of guides and examples how to do it using Devise and Omniauth gems. That works well when you need to make it work with…
Kernel#singleton_method
Few days ago when I was browsing through StackOverflow I came across this question about weird behaviour of Kernel#singleton_method such as if you call Kernel#singleton_methods method on ActiveSupport::Deprecation class you would get you list of…
Kernel#singleton_methods
ActiveSupport::Deprecation
For the past months I’ve been feeling a bit down, well that is probably the wrong word for it, uninspired is probably…
This is the second part in the Reviewery series. Check out the…
If you’ve ever developed an iOS application, I’m guessing that you’ve built a table- or collection view…
A common UI element when developing applications is the label. In both iOS and tvOS, this element is called…