spec/support/models/arstotzka/dummy.rb in arstotzka-1.0.4 vs spec/support/models/arstotzka/dummy.rb in arstotzka-1.1.0
- old
+ new
@@ -7,13 +7,13 @@
expose :id
expose :name, path: 'user'
expose :father_name, full_path: 'father.name'
expose :age, cached: true
- expose :house, class: ::House
- expose :old_house, class: ::House, cached: true
- expose :games, class: ::Game
- expose :games_filtered, class: ::Game, after: :filter_games, full_path: 'games'
+ expose :house, klass: ::House
+ expose :old_house, klass: ::House, cached: true
+ expose :games, klass: ::Game
+ expose :games_filtered, klass: ::Game, after: :filter_games, full_path: 'games'
def initialize(json)
@json = json
end