lib/faceted/model.rb in faceted-1.0.2 vs lib/faceted/model.rb in faceted-1.0.3
- old
+ new
@@ -24,13 +24,9 @@
obj = self.new(params)
obj.save
obj
end
- def expose(name, args={})
- field(name, args={})
- end
-
def field(name, args={})
fields << name
define_method :"#{name}" do
instance_variable_get("@#{name}") || args[:default]
end