Sha256: bab0346326094b0f74250a8350a0866d7e53db1bf876122a7b6715110aa35a99
Contents?: true
Size: 465 Bytes
Versions: 2
Compression:
Stored size: 465 Bytes
Contents
class Post < ActiveRecord::Base extend ActiveNull has_many :comments null_model do def override 'I am an override.' end end end class Comment < ActiveRecord::Base extend ActiveNull belongs_to :post null_model end class NullPostDecorator < Draper::Decorator delegate_all end class PostDecorator < Draper::Decorator delegate_all end module Test class TestModel < ActiveRecord::Base extend ActiveNull null_model end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_null-0.0.5 | spec/models.rb |
active_null-0.0.4 | spec/models.rb |