Class: Xhive::StylesheetsController

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

Instance Method Summary collapse

Methods included from Controller

#current_controller, extended

Instance Method Details

#indexObject



7
8
9
# File 'app/controllers/xhive/stylesheets_controller.rb', line 7

def index
  render :text => StylesheetPresenter.all_compressed(Stylesheet.all)
end

#showObject



11
12
13
14
# File 'app/controllers/xhive/stylesheets_controller.rb', line 11

def show
  @style = Stylesheet.find(params[:id])
  render :text => @style.presenter.compressed
end