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

Version Path
pulitzer-0.15.31 app/interactions/pulitzer/posts_controller/create.rb
pulitzer-0.15.30 app/interactions/pulitzer/posts_controller/create.rb
pulitzer-0.15.29 app/interactions/pulitzer/posts_controller/create.rb
pulitzer-0.15.28 app/interactions/pulitzer/posts_controller/create.rb
pulitzer-0.15.27 app/interactions/pulitzer/posts_controller/create.rb
pulitzer-0.15.26 app/interactions/pulitzer/posts_controller/create.rb
pulitzer-0.15.25 app/interactions/pulitzer/posts_controller/create.rb
pulitzer-0.15.24 app/interactions/pulitzer/posts_controller/create.rb
pulitzer-0.15.23 app/interactions/pulitzer/posts_controller/create.rb
pulitzer-0.15.22 app/interactions/pulitzer/posts_controller/create.rb
pulitzer-0.15.21 app/interactions/pulitzer/posts_controller/create.rb
pulitzer-0.15.20 app/interactions/pulitzer/posts_controller/create.rb
pulitzer-0.15.19 app/interactions/pulitzer/posts_controller/create.rb
pulitzer-0.15.18 app/interactions/pulitzer/posts_controller/create.rb
pulitzer-0.15.17 app/interactions/pulitzer/posts_controller/create.rb
pulitzer-0.15.16 app/interactions/pulitzer/posts_controller/create.rb
pulitzer-0.15.15 app/interactions/pulitzer/posts_controller/create.rb
pulitzer-0.15.14 app/interactions/pulitzer/posts_controller/create.rb
pulitzer-0.15.13 app/interactions/pulitzer/posts_controller/create.rb