Method: Ishapi::OptionPriceItemsController#view_by_symbol

Defined in:
app/controllers/ishapi/option_price_items_controller.rb

#view_by_symbolObject



17
18
19
20
21
22
# File 'app/controllers/ishapi/option_price_items_controller.rb', line 17

def view_by_symbol
  authorize! :view_chain, ::Iro::OptionPriceItem.new
  @opis = ::Iro::OptionPriceItem.where({ symbol: params[:symbol]
  }).limit(100)
  render 'view'
end