Flowdock
method

==

Importance_1
Ruby on Rails latest stable (v4.2.1) - 0 notes - Class: ActiveModel::Name
== public

Equivalent to String#==. Returns true if the class name and other are equal, otherwise false.

class BlogPost
  extend ActiveModel::Naming
end

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