Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Renamed Attribute#concat_options to Attribute#add_accepted_options

  • Loading branch information...
commit 6ff8f5bdaeb4ef1ffda0a7adce8c5ee49c8cc01a 1 parent 8e68a2a
@dkubb dkubb authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/virtus/attribute.rb
View
8 lib/virtus/attribute.rb
@@ -122,9 +122,9 @@ def self.accepted_options
#
# @api public
def self.accept_options(*new_options)
- concat_options(new_options)
+ add_accepted_options(new_options)
new_options.each { |option| add_option_method(option) }
- descendants.each { |descendant| descendant.concat_options(new_options) }
+ descendants.each { |descendant| descendant.add_accepted_options(new_options) }
self
end
@@ -167,7 +167,7 @@ def self.set_options(new_options)
# @return [self]
#
# @api private
- def self.concat_options(new_options)
+ def self.add_accepted_options(new_options)
accepted_options.concat(new_options.to_ary).uniq
self
end
@@ -181,7 +181,7 @@ def self.concat_options(new_options)
# @api private
def self.inherited(descendant)
super
- descendant.concat_options(accepted_options).set_options(options)
+ descendant.add_accepted_options(accepted_options).set_options(options)
self
end
Please sign in to comment.
Something went wrong with that request. Please try again.