Concrete adapter should provide serializable hash for Adapter#to_json method

This commit is contained in:
Tema Bolshakov
2014-08-27 09:33:14 +04:00
parent 2c7906e9ff
commit a6f9dae560
4 changed files with 2 additions and 16 deletions

View File

@@ -5,10 +5,6 @@ module ActiveModel
def serializable_hash(options = {})
{}
end
def to_json(options = {})
serializable_hash.to_json
end
end
end
end

View File

@@ -7,10 +7,6 @@ module ActiveModel
h[attr] = value
end
end
def to_json(options={})
serializable_hash(options).to_json
end
end
end
end