Sha256: 26a85d6adb37824ce871d2ba875ca41269c9d69f214f8ddf6a351a2a4935d4ed
Contents?: true
Size: 432 Bytes
Versions: 1
Compression:
Stored size: 432 Bytes
Contents
# This error should be raised if a user attempts to subscribe to a item which # is not subscribable module SolidusSubscriptions class UnsubscribableError < StandardError def initialize(subscribable) @subscribable = subscribable super end def to_s <<-MSG.squish #{@subscribable.class} with id: #{@subscribable.id} cannot be subscribed to. MSG end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_subscriptions-alpha-0.0.4 | app/models/solidus_subscriptions/unsubscribable_error.rb |