Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails check if object is new

item = Item.new
item.new_record? #=> true
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rails #check #object
ADD COMMENT
Topic
Name
3+8 =