Sha256: 15759dd1a51ac690a1bc133171995a1193d5760b397af191ec5d56ff323ead6d

Contents?: true

Size: 557 Bytes

Versions: 2

Compression:

Stored size: 557 Bytes

Contents

Pu  ||= Iro::Purse
Str ||= Iro::Strategy
Po  ||= Iro::Position
O   ||= Iro::Option
Sto ||= Iro::Stock

class Iro::ApplicationController < Wco::ApplicationController
  layout 'iro/application'

  before_action :set_lists, except: %i| schwab_sync |

  def home
    authorize! :home, Iro
  end

  def schwab_sync
    authorize! :shwab_sync, Iro
    render json: Iro::Iro.schwab_sync
  end

  ##
  ## private
  ##
  private

  def set_lists
    @purses = Iro::Purse.all
    @strategies = Iro::Strategy.all
    @strategies_list = Iro::Strategy.list
  end


end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iron_warbler-2.0.7.43 app/controllers/iro/application_controller.rb
iron_warbler-2.0.7.42 app/controllers/iro/application_controller.rb