module Rails::Surrender::ModelAdditions
Aad methods to the model class to describe how the model renders.
Public Class Methods
included(base)
click to toggle source
# File lib/rails/surrender/model_additions.rb, line 7 def self.included(base) attr_accessor :surrender_attributes attr_accessor :surrender_expands attr_accessor :surrender_available_attributes attr_accessor :surrender_available_expands base.extend(ClassMethods) end