Module: BHM::Admin::AttrAccessibleScoping::ARMixin
- Defined in:
- lib/bhm/admin/attr_accessible_scoping.rb
Instance Method Summary collapse
Instance Method Details
#accessible_attributes ⇒ Object
74 75 76 77 78 79 80 81 82 83 |
# File 'lib/bhm/admin/attr_accessible_scoping.rb', line 74 def accessible_attributes if _accessible_attributes.blank? || !_accessible_attributes.is_a?(BHM::Admin::AttrAccessibleScoping::Sanitizer) existing = _accessible_attributes self._accessible_attributes = BHM::Admin::AttrAccessibleScoping::Sanitizer.new.tap do |w| w.logger = self.logger if self.respond_to?(:logger) end self._accessible_attributes += existing if existing.present? end _accessible_attributes end |