Sha256: 36ac2b3e7398649600fe5b7e56e607d958d65366824404c96bdca88ef88b785c

Contents?: true

Size: 408 Bytes

Versions: 35

Compression:

Stored size: 408 Bytes

Contents

class Iugu::AccountSettingsController < Iugu::SettingsController
  before_filter :block_removing
  
  private

  def block_removing
    begin
      if params[:account_id]
        if Account.find(params[:account_id]).destroying?
          render :file => "#{Rails.root}/public/422", :status => 550
        end
      end
    rescue
      raise ActionController::RoutingError.new('Not Found')
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
iugusdk-1.0.11 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.10 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.9 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.8 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.7 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.6 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.5 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.4 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.3 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.2 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.1 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.0.alpha.32 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.0.alpha.31 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.0.alpha.30 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.0.alpha.29 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.0.alpha.28 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.0.alpha.27 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.0.alpha.26 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.0.alpha.25 app/controllers/iugu/account_settings_controller.rb
iugusdk-1.0.0.alpha.24 app/controllers/iugu/account_settings_controller.rb