Class: ActiveHashcash::StampsController

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
# File 'app/controllers/active_hashcash/stamps_controller.rb', line 3

def index
  @stamps = Stamp.filter_by(params).order(created_at: :desc).limit(1000)
end

#showObject



7
8
9
# File 'app/controllers/active_hashcash/stamps_controller.rb', line 7

def show
  @stamp = Stamp.find(params[:id])
end