SumOfUs/Champaign

View on GitHub
app/controllers/share/twitters_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class Share::TwittersController < Share::SharesController
  private

  def new_defaults
    { description: "#{@page.title} {LINK}" }
  end

  def permitted_params
    params
      .require(:share_twitter)
      .permit(:description, :name)
  end

  def share_class
    Share::Twitter
  end
end