Class: Adminable::Fields::HasMany

Inherits:
Base
  • Object
show all
Defined in:
lib/adminable/fields/has_many.rb

Instance Attribute Summary

Attributes inherited from Base

#name, #options

Instance Method Summary collapse

Methods inherited from Base

#form_partial_path, #index_partial_path, #initialize, #ransack_name, #type

Constructor Details

This class inherits a constructor from Adminable::Fields::Base

Instance Method Details

#keyObject



4
5
6
# File 'lib/adminable/fields/has_many.rb', line 4

def key
  "#{@name.to_s.singularize}_ids"
end

#strong_parameterObject



8
9
10
# File 'lib/adminable/fields/has_many.rb', line 8

def strong_parameter
  { key => [] }
end