Module: ActiveSupport::Concern
- Included in:
- ActionController::StrongParameters, LoggerThreadSafeLevel, LoggerSilence, Neo4j::ActiveNode, Neo4j::ActiveNode::Callbacks, Neo4j::ActiveNode::Enum, Neo4j::ActiveNode::HasN, Neo4j::ActiveNode::IdProperty, Neo4j::ActiveNode::IdProperty::Accessor, Neo4j::ActiveNode::Initialize, Neo4j::ActiveNode::Labels, Neo4j::ActiveNode::Labels::Index, Neo4j::ActiveNode::Labels::Reloading, Neo4j::ActiveNode::Persistence, Neo4j::ActiveNode::Property, Neo4j::ActiveNode::Query, Neo4j::ActiveNode::Reflection, Neo4j::ActiveNode::Scope, Neo4j::ActiveNode::Validations, Neo4j::ActiveRel, Neo4j::ActiveRel::Callbacks, Neo4j::ActiveRel::Initialize, Neo4j::ActiveRel::Persistence, Neo4j::ActiveRel::Property, Neo4j::ActiveRel::Query, Neo4j::ActiveRel::Types, Neo4j::ActiveRel::Validations, Neo4j::Shared, Neo4j::Shared::Attributes, Neo4j::Shared::Callbacks, Neo4j::Shared::Cypher::RelIdentifiers, Neo4j::Shared::Enum, Neo4j::Shared::Initialize, Neo4j::Shared::Marshal, Neo4j::Shared::MassAssignment, Neo4j::Shared::PermittedAttributes, Neo4j::Shared::Persistence, Neo4j::Shared::Property, Neo4j::Shared::SerializedProperties, Neo4j::Shared::TypecastedAttributes, Neo4j::Shared::Validations, Neo4j::Timestamps, Neo4j::Timestamps::Created, Neo4j::Timestamps::Updated
- Defined in:
- lib/backports/active_support/concern.rb
Instance Method Summary collapse
Instance Method Details
#class_methods(&class_methods_module_definition) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/backports/active_support/concern.rb', line 4 def class_methods(&class_methods_module_definition) mod = const_defined?(:ClassMethods, false) ? const_get(:ClassMethods) : const_set(:ClassMethods, Module.new) mod.module_eval(&class_methods_module_definition) end |