Sha256: 5b0f51f23637cf29173fa066488bff55a285865d2bb5458062ed9d87f4d0a03d

Contents?: true

Size: 311 Bytes

Versions: 6

Compression:

Stored size: 311 Bytes

Contents

require_dependency "lit/api/v1/base_controller"

module Lit
  module Api
    module V1
      class LocalesController < Api::V1::BaseController
        def index
          @locales = Locale.all
          render :json=>@locales.as_json(:root=>false, :only=>[:id, :locale])
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lit-0.2.4 app/controllers/lit/api/v1/locales_controller.rb
lit-0.2.3 app/controllers/lit/api/v1/locales_controller.rb
lit-0.2.2 app/controllers/lit/api/v1/locales_controller.rb
lit-0.2.1 app/controllers/lit/api/v1/locales_controller.rb
lit-0.2.0 app/controllers/lit/api/v1/locales_controller.rb
lit-0.1.0 app/controllers/lit/api/v1/locales_controller.rb