Module: Calliope::Models::Blog::ClassMethods

Defined in:
lib/calliope/models/blog.rb

Instance Method Summary collapse

Instance Method Details

#create_with_name(name) ⇒ Object



15
16
17
18
19
20
# File 'lib/calliope/models/blog.rb', line 15

def create_with_name(name)
  blog = new
  blog.name = name
  blog.save
  blog
end