Flowdock
method

eql?

Importance_1
v4.0.2 - Show latest stable - 0 notes - Class: ActiveModel::Name
eql? public

Equivalent to String#eql?. Returns true if the class name and other have the same length and content, otherwise false.

class BlogPost
  extend ActiveModel::Naming
end

BlogPost.model_name.eql?('BlogPost')  # => true
BlogPost.model_name.eql?('Blog Post') # => false
Show source
Register or log in to add new notes.