Sha256: f9b9090d12f243f0883aeb9cc91f357ffd7ce48e39660cc68ddddf98840f7881

Contents?: true

Size: 513 Bytes

Versions: 24

Compression:

Stored size: 513 Bytes

Contents

module KepplerCapsules
  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

24 entries across 24 versions & 1 rubygems

Version Path
keppler-2.1.2 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.1 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.pre.p1 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb