Sha256: ca4fd6fc52996081edcb1040c861846a519666499e00eeb8bf2285ba0dd18ee9
Contents?: true
Size: 871 Bytes
Versions: 2
Compression:
Stored size: 871 Bytes
Contents
module Socialization class << self def follow_model if @follow_model @follow_model elsif defined?(::Follow) ::Follow else raise RuntimeError.new("No Follow model has been defined.") end end def follow_model=(klass) @follow_model = klass end def like_model if @like_model @like_model elsif defined?(::Like) ::Like else raise RuntimeError.new("No Like model has been defined.") end end def like_model=(klass) @like_model = klass end def mention_model if @mention_model @mention_model elsif defined?(::Mention) ::Mention else raise RuntimeError.new("No Mention model has been defined.") end end def mention_model=(klass) @mention_model = klass end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
socialization-0.5.0.beta2 | lib/socialization/config/config.rb |
socialization-0.5.0.beta | lib/socialization/config.rb |