Sha256: 64e29190e83ee5dfaab432745459fec16159eaba41d1588c211a58c21ed7ce99
Contents?: true
Size: 509 Bytes
Versions: 31
Compression:
Stored size: 509 Bytes
Contents
module KepplerPoll module Concerns # Concern con la configuracion de parametros de los formulario module History extend ActiveSupport::Concern included do before_action :show_history, only: [:index] end private def show_history get_history(Room) end def get_history(model) @activities = PublicActivity::Activity.where( trackable_type: model.to_s ).order('created_at desc').limit(50) end end end end
Version data entries
31 entries across 31 versions & 1 rubygems