module Settings::Setting::Assignment::Object
Public Class Methods
assure_settable(receiver, attribute, strict=true)
click to toggle source
# File lib/settings/setting/assignment.rb, line 35 def self.assure_settable(receiver, attribute, strict=true) if strict setting = setting?(receiver, attribute) unless setting return false end end assignable = assignable? receiver, attribute unless assignable return false end true end