Sha256: 6f7bce1c05421d1ed3df035932abfa3454dd61c630249807b9e96a2393c8c1c9
Contents?: true
Size: 300 Bytes
Versions: 19
Compression:
Stored size: 300 Bytes
Contents
class Pulitzer::PostsController::Create include Pulitzer::PostsController::Validations def initialize(params) @params = params end def call @post = Pulitzer::Post.new(@params) validate_title or return @post @post.save @post.create_preview_version @post end end
Version data entries
19 entries across 19 versions & 1 rubygems