Sha256: 236a889b24254e3a92743cb86e150f4561fd36f0e18201abf95fc0ea4a9bbe59
Contents?: true
Size: 270 Bytes
Versions: 45
Compression:
Stored size: 270 Bytes
Contents
def update_use_restriction YAML.load(open('db/fixtures/enju_circulation/use_restrictions.yml').read).each do |line| l = line[1].select!{|k, v| %w(name display_name).include?(k)} UseRestriction.where(name: l["name"]).first.try(:update_attributes!, l) end end
Version data entries
45 entries across 45 versions & 1 rubygems