class Object

Public Class Methods

frill?(object, context) click to toggle source

frill? tells Frill when to decorate an object with this module. If you're decorating within a controller action via the `frill` method, then the context is the controller instance. This would allow you to scope this frill to only certain types of requests (e.g., context.request.json?)

# File lib/generators/frill/templates/frill.rb, line 15
def self.frill?(object, context)
  false
end