module PhilColumns::WithBackend

Public Class Methods

included( base ) click to toggle source
# File lib/phil_columns/with_backend.rb, line 4
def self.included( base )
  base.class_eval do
    attr_reader :backend
  end
end

Protected Instance Methods

backend_responds?( method ) click to toggle source
# File lib/phil_columns/with_backend.rb, line 12
def backend_responds?( method )
  backend && backend.respond_to?( method )
end
error() click to toggle source
# File lib/phil_columns/with_backend.rb, line 16
def error
  [NotImplementedError, "You must include a database adapter (ie. phil_columns-activerecord)"]
end