Sha256: 755cb11fb99956ae00312733c80711600c354be0e60dd4d5091793de3fd340fd

Contents?: true

Size: 353 Bytes

Versions: 3

Compression:

Stored size: 353 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
end

class NullPostDecorator < Draper::Decorator
  delegate_all
end

class PostDecorator < Draper::Decorator
  delegate_all
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_null-0.0.3 spec/models.rb
active_null-0.0.2 spec/models.rb
active_null-0.0.1 spec/models.rb