we can used defined?() to check if a method is public or protected
backport rails 4 assign attributes
Merge pull request #18 from github/remove-use-of-method-private

Remove use of Method#private?