Sha256: 4ab6915738f082301558c4047226ff45ecdda225080823e3ddf15f009fd170fe

Contents?: true

Size: 357 Bytes

Versions: 11

Compression:

Stored size: 357 Bytes

Contents

class PostsController < ApplicationController
  decorates_assigned :post

  def show
    @post = Post.find(params[:id])
  end

  def mail
    post = Post.find(params[:id])
    email = PostMailer.decorated_email(post).deliver
    render text: email.body
  end

  private

  def goodnight_moon
    "Goodnight, moon!"
  end
  helper_method :goodnight_moon
end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
draper-3.0.0.pre1 spec/dummy/app/controllers/posts_controller.rb
draper_new-3.0.0 spec/dummy/app/controllers/posts_controller.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/draper-2.1.0/spec/dummy/app/controllers/posts_controller.rb
draper-2.1.0 spec/dummy/app/controllers/posts_controller.rb
draper-2.0.0 spec/dummy/app/controllers/posts_controller.rb
draper-1.4.0 spec/dummy/app/controllers/posts_controller.rb
draper-1.3.1 spec/dummy/app/controllers/posts_controller.rb
draper-1.3.0 spec/dummy/app/controllers/posts_controller.rb
draper-1.2.1 spec/dummy/app/controllers/posts_controller.rb
draper-1.2.0 spec/dummy/app/controllers/posts_controller.rb
jamesgolick-draper-1.1.1a spec/dummy/app/controllers/posts_controller.rb