Sha256: 1d3fb7835502c8f443e50754030b3307c6699b7e0e068916ee735fff94641d98
Contents?: true
Size: 278 Bytes
Versions: 2
Compression:
Stored size: 278 Bytes
Contents
class DslController < ApplicationController include Databound private def model User end def permitted_columns %i(name city) end dsl(:city, :hottest) do 'Miami' end dsl(:city, :coldest) do |params| "Where #{params[:name]} lives" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
databound-2.0.1 | spec/internal/app/controllers/dsl_controller.rb |
databound-2.0.0 | spec/internal/app/controllers/dsl_controller.rb |