module Resourcerer::Controller
Public: Provides two `resource` helper methods to simplify the definition and usage of Resources.
It's also possible to define presets, which can then be reused by providing the :using option when using or defining a Resource
.
Public Instance Methods
resource(name, **options)
click to toggle source
# File lib/resourcerer/controller.rb, line 19 def resource(name, **options) Resource.new(self, name, **options).get(self) end