class Rack::Scaffold::Adapters::Base

Attributes

klass[R]

Public Class Methods

===(_model) click to toggle source
# File lib/rack/scaffold/adapters.rb, line 21
def ===(_model)
  raise NotImplementedError
end
inherited(adapter) click to toggle source
Calls superclass method
# File lib/rack/scaffold/adapters.rb, line 16
def inherited(adapter)
  ::Rack::Scaffold.adapters << adapter
  super
end
new(klass) click to toggle source
# File lib/rack/scaffold/adapters.rb, line 30
def initialize(klass)
  @klass = klass
end
resources(_model, _options = {}) click to toggle source
# File lib/rack/scaffold/adapters.rb, line 25
def resources(_model, _options = {})
  raise NotImplementedError
end

Public Instance Methods

[](_id) click to toggle source
# File lib/rack/scaffold/adapters.rb, line 54
def [](_id)
  raise NotImplementedError
end
all() click to toggle source
# File lib/rack/scaffold/adapters.rb, line 46
def all
  raise NotImplementedError
end
count() click to toggle source
# File lib/rack/scaffold/adapters.rb, line 42
def count
  raise NotImplementedError
end
create!(_attributes = {}) click to toggle source
# File lib/rack/scaffold/adapters.rb, line 66
def create!(_attributes = {})
  raise NotImplementedError
end
destroy!() click to toggle source
# File lib/rack/scaffold/adapters.rb, line 74
def destroy!
  raise NotImplementedError
end
find(_options = {}) click to toggle source
# File lib/rack/scaffold/adapters.rb, line 62
def find(_options = {})
  raise NotImplementedError
end
method_missing(method, *_args) click to toggle source
# File lib/rack/scaffold/adapters.rb, line 86
def method_missing(method, *_args)
  @klass.send(method)
end
one_to_many_associations() click to toggle source
# File lib/rack/scaffold/adapters.rb, line 58
def one_to_many_associations
  raise NotImplementedError
end
paginate(_offset, _limit) click to toggle source
# File lib/rack/scaffold/adapters.rb, line 50
def paginate(_offset, _limit)
  raise NotImplementedError
end
plural() click to toggle source
# File lib/rack/scaffold/adapters.rb, line 38
def plural
  raise NotImplementedError
end
singular() click to toggle source
# File lib/rack/scaffold/adapters.rb, line 34
def singular
  raise NotImplementedError
end
timestamps?() click to toggle source
# File lib/rack/scaffold/adapters.rb, line 78
def timestamps?
  raise NotImplementedError
end
update!(_attributes = {}) click to toggle source
# File lib/rack/scaffold/adapters.rb, line 70
def update!(_attributes = {})
  raise NotImplementedError
end
update_timestamp_field() click to toggle source
# File lib/rack/scaffold/adapters.rb, line 82
def update_timestamp_field
  raise NotImplementedError
end