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

- old
+ new

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