Sha256: 697ff19974b64ef1accd52860739ff18a07ba8074dcb7d35231190230a9877af

Contents?: true

Size: 257 Bytes

Versions: 5

Compression:

Stored size: 257 Bytes

Contents

# frozen_string_literal: true

module Magicka
  # Helper module to be used on rails
  module Helper
    def magicka_form(model)
      yield Form.new(self, model)
    end

    def magicka_display(model)
      yield Display.new(self, model)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
magicka-0.5.6 lib/magicka/helper.rb
magicka-0.5.5 lib/magicka/helper.rb
magicka-0.5.4 lib/magicka/helper.rb
magicka-0.5.3 lib/magicka/helper.rb
magicka-0.5.2 lib/magicka/helper.rb