Skip to content

Instantly share code, notes, and snippets.

class FieldType < ActiveRecord::Base
has_many :model_object_types
has_many :field_values
attr_accessible :name
end
class FieldValue < ActiveRecord::Base
has_one :field_type
has_many :object_models
attr_accessible :value
@heartpunk
heartpunk / source_maps.rb
Created December 10, 2012 07:27 — forked from alexspeller/source_maps.rb
Coffeescript Source Maps in Rails
# config/initializers/source_maps.rb
if Rails.env.development?
require 'open3'
module CoffeeScript
class SourceMapError < StandardError; end;
class << self
def map_dir