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

Version Path
keppler-2.1.22 installer/plugins/concerns/history.rb
keppler-2.1.21 installer/plugins/concerns/history.rb
keppler-2.1.20 installer/plugins/concerns/history.rb
keppler-2.1.19 installer/plugins/concerns/history.rb
keppler-2.1.18 installer/plugins/concerns/history.rb
keppler-2.1.17 installer/plugins/concerns/history.rb
keppler-2.1.16 installer/plugins/concerns/history.rb
keppler-2.1.15 installer/plugins/concerns/history.rb
keppler-2.1.14 installer/plugins/concerns/history.rb
keppler-2.1.13 installer/plugins/concerns/history.rb
keppler-2.1.12 installer/plugins/concerns/history.rb
keppler-2.1.11 installer/plugins/concerns/history.rb
keppler-2.1.10 installer/plugins/concerns/history.rb
keppler-2.1.9 installer/plugins/concerns/history.rb
keppler-2.1.8 installer/plugins/concerns/history.rb
keppler-2.1.7 installer/plugins/concerns/history.rb
keppler-2.1.6 installer/plugins/concerns/history.rb
keppler-2.1.5 installer/plugins/concerns/history.rb
keppler-2.1.4 installer/plugins/concerns/history.rb
keppler-2.1.3 installer/plugins/concerns/history.rb