Created
March 29, 2016 03:01
-
-
Save sameera207/7b8bb8aabf7b3dd1ca3f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Admin::GroupsController < Admin::BaseController | |
def delete_all_groups | |
GroupService.new(current_user, @group).delete_all_groups | |
end | |
end | |
class GroupService | |
def initialize(user, group) | |
@user = user | |
@group = group | |
end | |
def delete_all_groups(params) | |
end | |
private | |
def validate_user_password(password) | |
@user.validate_password(password) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment