Created
July 5, 2016 18:56
-
-
Save etagwerker/203ea3caf3347e276f65c69368ff3516 to your computer and use it in GitHub Desktop.
null_seller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Only the sysadmin will have this type of {Seller} | |
class NullSeller < Seller | |
def active? | |
true | |
end | |
def activated?(key) | |
true | |
end | |
def can_add_products? | |
true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment