diff options
author | Arthur Nogueira Neves <github@arthurnn.com> | 2015-09-17 10:36:25 -0400 |
---|---|---|
committer | Arthur Nogueira Neves <github@arthurnn.com> | 2015-09-17 10:36:25 -0400 |
commit | 90ac9f2e54be07117920f6724f5a3543a07367a9 (patch) | |
tree | 1b76de2934f1f438c3d8bd5a7c4258297a531cb7 /activerecord/lib/active_record/reflection.rb | |
parent | 9ef7b2d4ccab8a6a774dae9e22112652246c8b91 (diff) | |
parent | e0702972b4be2b38b0ea365e97b3b436943a0199 (diff) | |
download | rails-90ac9f2e54be07117920f6724f5a3543a07367a9.tar.gz rails-90ac9f2e54be07117920f6724f5a3543a07367a9.tar.bz2 rails-90ac9f2e54be07117920f6724f5a3543a07367a9.zip |
Merge pull request #21654 from yui-knk/fix/doc_api
[ci skip] Remove useless "@api public/private"
Diffstat (limited to 'activerecord/lib/active_record/reflection.rb')
-rw-r--r-- | activerecord/lib/active_record/reflection.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/activerecord/lib/active_record/reflection.rb b/activerecord/lib/active_record/reflection.rb index 2b648978b3..4e0fc407bc 100644 --- a/activerecord/lib/active_record/reflection.rb +++ b/activerecord/lib/active_record/reflection.rb @@ -66,7 +66,6 @@ module ActiveRecord # # Account.reflections # => {"balance" => AggregateReflection} # - # @api public def reflections @__reflections ||= begin ref = {} @@ -96,7 +95,6 @@ module ActiveRecord # Account.reflect_on_all_associations # returns an array of all associations # Account.reflect_on_all_associations(:has_many) # returns an array of all has_many associations # - # @api public def reflect_on_all_associations(macro = nil) association_reflections = reflections.values association_reflections.select! { |reflection| reflection.macro == macro } if macro @@ -108,24 +106,20 @@ module ActiveRecord # Account.reflect_on_association(:owner) # returns the owner AssociationReflection # Invoice.reflect_on_association(:line_items).macro # returns :has_many # - # @api public def reflect_on_association(association) reflections[association.to_s] end - # @api private def _reflect_on_association(association) #:nodoc: _reflections[association.to_s] end # Returns an array of AssociationReflection objects for all associations which have <tt>:autosave</tt> enabled. - # - # @api public def reflect_on_all_autosave_associations reflections.values.select { |reflection| reflection.options[:autosave] } end - def clear_reflections_cache #:nodoc: + def clear_reflections_cache # :nodoc: @__reflections = nil end end |