Skip to content

Instantly share code, notes, and snippets.

@dangjlin
Created June 21, 2015 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dangjlin/7ae03882bd97c6f66d39 to your computer and use it in GitHub Desktop.
Save dangjlin/7ae03882bd97c6f66d39 to your computer and use it in GitHub Desktop.
module ActiveSupport
module Concern
class MultipleIncludedBlocks < StandardError #:nodoc:
def initialize
super "Cannot define multiple 'included' blocks for a Concern"
end
end
def self.extended(base) base.instance_variable_set(:@_dependencies, [])
end
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment