Sha256: 64cd95a8f562a2be0e45fa85c5810e91a47530a15966caad380eba77647fab5c

Contents?: true

Size: 316 Bytes

Versions: 4

Compression:

Stored size: 316 Bytes

Contents

module Kangaroo
  module RubyAdapter
    module Fields
      def add_fields
        @ruby_model.define_multiple_accessors *field_names
      end
      
      protected
      def field_names
        fields.map &:name
      end
      
      def fields
        @fields ||= @ruby_model.fields
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kangaroo-0.0.3 lib/kangaroo/ruby_adapter/fields.rb
kangaroo-0.0.2 lib/kangaroo/ruby_adapter/fields.rb
kangaroo-0.0.1.pre2 lib/kangaroo/ruby_adapter/fields.rb
kangaroo-0.0.1.pre lib/kangaroo/ruby_adapter/fields.rb