Module: Neighbor::GeneratedAttribute
- Defined in:
- lib/neighbor/railtie.rb
Instance Method Summary collapse
Instance Method Details
#parse_type_and_options(type) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/neighbor/railtie.rb', line 12 def (type, *, **) if type =~ /\A(vector|halfvec|bit|sparsevec)\{(\d+)\}\z/ return $1, limit: $2.to_i end super end |