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.22 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.21 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.20 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.19 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.18 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.17 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.16 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.15 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.14 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.13 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.12 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.11 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.10 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.9 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.8 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.7 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.6 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.5 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.4 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb
keppler-2.1.3 installer/core/rockets/keppler_capsules/app/controllers/keppler_capsules/concerns/history.rb