module Rooftop::ResourceLinks

Constants

Public Class Methods

included(base) click to toggle source
# File lib/rooftop/resource_links/resource_links.rb, line 5
def self.included(base)
  # set up an attribute called resource_links, which is a collection of links
  # to other resources in the API.
  base.send(:after_find, :generate_resource_links)
  base.send(:after_save, :generate_resource_links)
  base.extend ClassMethods
  base.configure_resource_link_mapping
end

Public Instance Methods