Class: ExchangeRatesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/exchange_rates_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

caches_page_with_cache_marker, #raise_not_found!

Instance Method Details

#indexObject



8
9
10
11
12
13
14
15
16
17
# File 'app/controllers/exchange_rates_controller.rb', line 8

def index
  @features = nil
  # @features = TranslationCms::Api::FeatureRate.all(_satellite_id: Settings.satellite_id)
  # expires_in 30.minutes, public: true

  respond_with(@features) do |format|
    format.json { render }
    format.all { redirect_to(root_path) }
  end
end