Sha256: 3ae482e541ad329cca7fbd8b61f6c4ed7ca324dbdfdcb643c27426f2dd0e1e1b
Contents?: true
Size: 330 Bytes
Versions: 1
Compression:
Stored size: 330 Bytes
Contents
require 'map_fields/mapper' module MapFields module Controller def map_fields(fields, file, &block) append_view_path File.expand_path('../../../views/', __FILE__) @mapper = Mapper.new(self, fields, file) if @mapper.mapped? block.call(@mapper) else render end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
map_fields-2.0.0.beta2 | lib/map_fields/controller.rb |