Sha256: ff93560f6ec893971b7ffeda0af561d8297b9c5b43441cc3bd54857a1d7c263e
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 Bytes
Contents
# encoding: UTF-8 class GaragesController < ActionController::Base def index @garages = Garage.all respond_to do |format| format.json do render :json => @garages.from_materialized(:profile => :name) end end end def show @garage = Garage.find(params[:id]) respond_to do |format| format.json do render :json => @garage.from_materialized(:profile => :name) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
materializer-0.0.1 | spec/support/controllers.rb |