Sha256: 3990f5744d83587233a613c1221f7e26a8896c819fb1230ab2a109d0fa67df71

Contents?: true

Size: 514 Bytes

Versions: 24

Compression:

Stored size: 514 Bytes

Contents

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