Class: Muve::Place
Instance Method Summary collapse
Methods included from Model
#==, #attributes, #attributes=, connection, #connection, connection=, #database, database, database=, #destroy, #destroyed?, handler, #id, included, init, #initialize, #invalid?, #new_record?, #persisted?, #reload, #save, #save!, #to_hash, #to_param
Methods included from Helper
Instance Method Details
#valid? ⇒ Boolean
7 8 9 10 11 |
# File 'lib/muve/place.rb', line 7 def valid? return false unless name return false unless location.kind_of?(Muve::Location) && location.valid? true end |