Sha256: 51dd2b5d304a9e2d954c0fd9208d7c81b84ad881b12c3c12ddb35855d3525b13

Contents?: true

Size: 337 Bytes

Versions: 10

Compression:

Stored size: 337 Bytes

Contents

class << ActiveRecord::Base
  def concerned_with(*concerns)
    concerns.each do |concern|
      require_dependency "#{name.underscore}/#{concern}"
    end
  end
end

class << ActionController::Base
  def concerned_with(*concerns)
    concerns.each do |concern|
      require_dependency "#{name.underscore}/#{concern}"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
stones-1.3.1 config/initializers/concerns.rb
stones-1.3.0 config/initializers/concerns.rb
stones-1.2.4 config/initializers/concerns.rb
stones-1.2.3 config/initializers/concerns.rb
stones-1.2.2 config/initializers/concerns.rb
stones-1.2.1 config/initializers/concerns.rb
stones-1.2.0 config/initializers/concerns.rb
stones-1.1.3 config/initializers/concerns.rb
stones-1.1.1 config/initializers/concerns.rb
stones-1.1.0 config/initializers/concerns.rb