Sha256: 7a6607e35d44aa49c99a0678aaced90e58ae8311bbec48a84d48e88f3ba3739f
Contents?: true
Size: 686 Bytes
Versions: 12
Compression:
Stored size: 686 Bytes
Contents
class Application < ActiveRecord::Base has_capabilities has_user_preferences has_and_belongs_to_many :app_containers has_and_belongs_to_many :widgets validates_uniqueness_of :javascript_class_name validates_uniqueness_of :internal_identifier, :scope => :type def to_access_hash { :iid => self.internal_identifier, :capabilities => self.capabilites_to_hash, :widgets => widgets.collect{|widget| widget.to_access_hash} } end def locate_resources(resource_type) resource_loader = ErpApp::ApplicationResourceLoader::DesktopOrganizerLoader.new(self) resource_loader.locate_resources(resource_type) end end
Version data entries
12 entries across 12 versions & 1 rubygems