module Viewmatic::Model

Helpers for view-based ActiveRecord models.

Public Class Methods

included(model) click to toggle source
# File lib/viewmatic/model.rb, line 6
def self.included(model)
  model.extend ClassMethods
end

Public Instance Methods

readonly?() click to toggle source

All view record are read-only.

@return [Boolea] will always be true

# File lib/viewmatic/model.rb, line 15
def readonly?
  true
end