This file contains 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
def new | |
@accessory = Accessory.new({ :client_id => params[:client_id] }) | |
# b/c an accessory can be nested under client or lifting_device | |
@parent = find_parent | |
@users = (User.client_users @client.id).client_user_roles | |
end | |
def create | |
@parent = find_parent |