mongoid-tags-arent-hard 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ module Mongoid
|
|
4
4
|
|
5
5
|
attr_accessor :tag_list
|
6
6
|
attr_accessor :options
|
7
|
-
delegate :join, :map, :each, :inspect, :==, :===, :eql?, :__bson_dump__, :delete, :&, :to_ary, to: :tag_list
|
7
|
+
delegate :join, :map, :each, :inspect, :==, :===, :eql?, :__bson_dump__, :delete, :&, :to_ary, :to_json, to: :tag_list
|
8
8
|
|
9
9
|
def initialize(*tag_list, options)
|
10
10
|
self.options = {separator: Mongoid::TagsArentHard.config.separator}.merge(options)
|