app/controllers/management/page_steps_controller.rb
# Returns true if the button pressed was publish
Returns true if the button pressed was publish
Returns true if the button pressed was publish
def publish_button?
    return false unless params[:button]
    [PUBLISH, UNPUBLISH].include? params[:button].upcase
  end
def publish_button? return false unless params [ :button ] [ PUBLISH , UNPUBLISH ] . include? params [ :button ] . upcase end
Returns true if the button pressed was publish
Returns true if the button pressed was publish