Module: Sequel::Plugins::ExtJS::ClassMethods
- Defined in:
- lib/sequel_extjs.rb
Instance Method Summary collapse
-
#extjs_metadata(ary = []) ⇒ Object
this will return a properly formated ExtJS metaData hash for its JsonReader, keep in mind that it will only return fields that beling to that model and wont honor joins (its a class method after all).
Instance Method Details
#extjs_metadata(ary = []) ⇒ Object
this will return a properly formated ExtJS metaData hash for its JsonReader, keep in mind that it will only return fields that beling to that model and wont honor joins (its a class method after all). To include extra fields please pass a array with the name of the fields as a parameter
72 73 74 |
# File 'lib/sequel_extjs.rb', line 72 def (ary = []) (self.columns + ary).inject(""){|res,el| "#{res}{name : '#{el}'}," } end |