Sha256: fd782a3969b4b15c7376ac7d2bfb3969f5630c903fc7649ea865064afd8f09fd
Contents?: true
Size: 364 Bytes
Versions: 3
Compression:
Stored size: 364 Bytes
Contents
module Formulaic module Dsl def fill_form(model_name, attributes) Form.new(model_name, attributes).fill end def input(model_name, field, action = :create) Label.new(model_name, field, action).to_str end def submit(model_class, action = :create) I18n.t([:helpers, :submit, model_class, action].join('.')) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
formulaic-0.0.6 | lib/formulaic/dsl.rb |
formulaic-0.0.5 | lib/formulaic/dsl.rb |
formulaic-0.0.4 | lib/formulaic/dsl.rb |