Sha256: 083a83c266dbffd88fabbdc4a8e853b8dc54eba2d7d13a525e9799927687bccc
Contents?: true
Size: 598 Bytes
Versions: 4
Compression:
Stored size: 598 Bytes
Contents
module Globase class Template < Resource def show(params = {}) raise NoMethodError end def update(data, params = {}) raise NoMethodError end def delete(params = {}) raise NoMethodError end class << self def create(data, params = {}) raise NoMethodError end def find(id, params = {}) all.select{|l| l.id == id.to_i }.first end def all(params = {}) super(params) end def fields @fields = super | [:id, :name, :description, :config, :image ] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
globase-0.0.3 | lib/globase/template.rb |
globase-0.0.2 | lib/globase/template.rb |
globase-0.0.1 | lib/globase/template.rb |
globase-0.0.0.pre4 | lib/globase/template.rb |