Module: RoFaker

Defined in:
lib/rrjj/ro_faker.rb

Class Method Summary collapse

Class Method Details

.post(attrs = {}) ⇒ Object



3
4
5
6
7
8
# File 'lib/rrjj/ro_faker.rb', line 3

def post(attrs={})
  attrs[:title] ||= sentence
  attrs[:content] ||= paras

  Post.create(attrs)
end