Sha256: 35d1409fb25b8e048c5e9474744a47d6b127198fb423a5e35cc5403442cf36d9
Contents?: true
Size: 424 Bytes
Versions: 2
Compression:
Stored size: 424 Bytes
Contents
require_dependency "sequent/application_controller" module Sequent class StreamsController < ApplicationController def index @streams = get_streams.order(id: :desc) end private def get_streams if params[:aggregate_type].present? Sequent::Core::StreamRecord.where(aggregate_type: params[:aggregate_type]) else Sequent::Core::StreamRecord.all end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sequent-rails-0.1.1 | app/controllers/sequent/streams_controller.rb |
sequent-rails-0.1.0 | app/controllers/sequent/streams_controller.rb |