Skip to content

Commit

Permalink
Remove unused before_action
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcolvar committed May 24, 2016
1 parent 469a266 commit 1e85180
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/controllers/playlists_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ class PlaylistsController < ApplicationController
before_action :authenticate_user!, except: [:show]
load_and_authorize_resource

before_action :set_playlist, only: [:show, :edit, :update, :destroy, :update_multiple]
before_action :get_all_playlists, only: [:index, :edit, :update]

# GET /playlists
Expand Down Expand Up @@ -78,11 +77,6 @@ def destroy

private

# Use callbacks to share common setup or constraints between actions.
def set_playlist
@playlist = Playlist.find(params[:id])
end

# Use callbacks to share common setup or constraints between actions.
def get_all_playlists
@playlists = Playlist.for_ability(current_ability).to_a
Expand Down

0 comments on commit 1e85180

Please sign in to comment.