class Rack::Scaffold::Adapters::Base
Attributes
klass[R]
Public Class Methods
===(model)
click to toggle source
# File lib/rack/scaffold/adapters.rb, line 19 def ===(model) raise NotImplementedError end
inherited(adapter)
click to toggle source
Calls superclass method
# File lib/rack/scaffold/adapters.rb, line 14 def inherited(adapter) ::Rack::Scaffold.adapters << adapter super end
new(klass)
click to toggle source
# File lib/rack/scaffold/adapters.rb, line 28 def initialize(klass) @klass = klass end
resources(model, options = {})
click to toggle source
# File lib/rack/scaffold/adapters.rb, line 23 def resources(model, options = {}) raise NotImplementedError end
Public Instance Methods
[](id)
click to toggle source
# File lib/rack/scaffold/adapters.rb, line 52 def [](id) raise NotImplementedError end
all()
click to toggle source
# File lib/rack/scaffold/adapters.rb, line 44 def all raise NotImplementedError end
count()
click to toggle source
# File lib/rack/scaffold/adapters.rb, line 40 def count raise NotImplementedError end
create!(attributes = {})
click to toggle source
# File lib/rack/scaffold/adapters.rb, line 64 def create!(attributes = {}) raise NotImplementedError end
destroy!()
click to toggle source
# File lib/rack/scaffold/adapters.rb, line 72 def destroy! raise NotImplementedError end
find(options = {})
click to toggle source
# File lib/rack/scaffold/adapters.rb, line 60 def find(options = {}) raise NotImplementedError end
method_missing(method, *args, &block)
click to toggle source
# File lib/rack/scaffold/adapters.rb, line 84 def method_missing(method, *args, &block) @klass.send(method) end
one_to_many_associations()
click to toggle source
# File lib/rack/scaffold/adapters.rb, line 56 def one_to_many_associations raise NotImplementedError end
paginate(offset, limit)
click to toggle source
# File lib/rack/scaffold/adapters.rb, line 48 def paginate(offset, limit) raise NotImplementedError end
plural()
click to toggle source
# File lib/rack/scaffold/adapters.rb, line 36 def plural raise NotImplementedError end
singular()
click to toggle source
# File lib/rack/scaffold/adapters.rb, line 32 def singular raise NotImplementedError end
timestamps?()
click to toggle source
# File lib/rack/scaffold/adapters.rb, line 76 def timestamps? raise NotImplementedError end
update!(attributes = {})
click to toggle source
# File lib/rack/scaffold/adapters.rb, line 68 def update!(attributes = {}) raise NotImplementedError end
update_timestamp_field()
click to toggle source
# File lib/rack/scaffold/adapters.rb, line 80 def update_timestamp_field raise NotImplementedError end