Sha256: f5e68d7f1feebaed49e467a683f7792f4802000871ff0c3a1a9b209a1def8ce1
Contents?: true
Size: 663 Bytes
Versions: 6
Compression:
Stored size: 663 Bytes
Contents
# # This is a way to wrap model attributes as Active Record-like column objects, providing a name and type for the column. # This helps when using view generators, such as twitter-bootstrap-rails. # module Neo4j module Rails class Column attr_reader :name, :type, :index, :converter def initialize(args) raise ArgumentError, "Column must passed a :name" if args[:name].nil? args[:type] ||= "String" # default the type to String. args.each do |k,v| instance_variable_set("@#{k}", v.to_s) unless v.nil? end end end end #rails end #neo4j
Version data entries
6 entries across 6 versions & 1 rubygems