Sha256: 61df75ab25aa0c2d27d7bce48650dfa535533a8a811977df33651c0c9ec95778

Contents?: true

Size: 479 Bytes

Versions: 73

Compression:

Stored size: 479 Bytes

Contents

module Coco
  module Concerns
    module ActsAsNotification
      extend ActiveSupport::Concern
      include AcceptsOptions

      included do
        accepts_option :show, from: [true, false], default: true
        accepts_option :dismiss, from: [true, false], default: true
        accepts_option :show_delay, default: 0
        accepts_option :dismiss_delay, default: 5000
        accepts_option :position, from: %i[static fixed], default: :fixed
      end
    end
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
coveragebook_components-0.6.4 app/components/coco/concerns/acts_as_notification.rb
coveragebook_components-0.6.3 app/components/coco/concerns/acts_as_notification.rb
coveragebook_components-0.6.2 app/components/coco/concerns/acts_as_notification.rb
coveragebook_components-0.6.1 app/components/coco/concerns/acts_as_notification.rb
coveragebook_components-0.6.0 app/components/coco/concerns/acts_as_notification.rb
coveragebook_components-0.5.7 app/components/coco/concerns/acts_as_notification.rb
coveragebook_components-0.5.6 app/components/coco/concerns/acts_as_notification.rb
coveragebook_components-0.5.5 app/components/coco/concerns/acts_as_notification.rb
coveragebook_components-0.5.4 app/components/coco/concerns/acts_as_notification.rb
coveragebook_components-0.5.3 app/components/coco/concerns/acts_as_notification.rb
coveragebook_components-0.5.2 app/components/coco/concerns/acts_as_notification.rb
coveragebook_components-0.5.1 app/components/coco/concerns/acts_as_notification.rb
coveragebook_components-0.5.0 app/components/coco/concerns/acts_as_notification.rb