Sha256: 3f9fa77c8d1b0146be2dae18c971fb17383f575b6ac67ba423219173c2275562

Contents?: true

Size: 450 Bytes

Versions: 3

Compression:

Stored size: 450 Bytes

Contents

module SeemsRateable
	module Errors
		class InvalidRateableObjectError < StandardError
			def to_s
				"Stated object is not rateable. Add 'seems_rateable' to your object's class model."
			end
		end
		
		class NoCurrentUserInstanceError < StandardError
			def to_s
				"User instance current_user is not available."
			end
		end
		
		class AlreadyRatedError < StandardError
			def to_s
				"User has already rated an object."
			end
		end	
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
seems_rateable-1.0.9 lib/seems_rateable/errors.rb
seems_rateable-1.0.8 lib/seems_rateable/errors.rb
seems_rateable-1.0.7 lib/seems_rateable/errors.rb