app/controllers/phcscriptcdnpro/script/licences_controller.rb in phcscriptcdnpro-11.2.1 vs app/controllers/phcscriptcdnpro/script/licences_controller.rb in phcscriptcdnpro-11.3.0

- old
+ new

@@ -9,11 +9,11 @@ before_action :set_paper_trail_whodunnit before_action :set_script_licence, only: [:show, :edit, :update, :destroy] # INDEX - Script Licences def index - @script_licences = Script::Licence.where(oganization_id: membership_info.org_id) + @script_licences = Script::Licence.where(oganization_id: authrocket_membership_info.org_id) end # DETAILS - Script Licences def show @script_licences = Script::Licence.friendly.find(params[:id]) @@ -32,12 +32,12 @@ # POST - Script Licences def create @script_licence = Script::Licence.new(script_licence_params) @script_licence.user_id = current_user.id @script_licence.user_name = current_user.username - @script_licence.membership_id = membership_info.id - @script_licence.oganization_id = membership_info.org_id + @script_licence.membership_id = authrocket_membership_info.id + @script_licence.oganization_id = authrocket_membership_info.org_id if @script_licence.save redirect_to script_licences_url, notice: 'Licence was successfully created.' else render :new end @@ -45,11 +45,11 @@ # PATCH/PUT - Script Licences def update @script_licence.user_id = current_user.id @script_licence.user_name = current_user.username - @script_licence.membership_id = membership_info.id - @script_licence.oganization_id = membership_info.org_id + @script_licence.membership_id = authrocket_membership_info.id + @script_licence.oganization_id = authrocket_membership_info.org_id if @script_licence.update(script_licence_params) redirect_to script_licences_url, notice: 'Licence was successfully updated.' else render :edit end