app/models/application.rb in erp_app-3.0.13 vs app/models/application.rb in erp_app-3.0.14
- old
+ new
@@ -1,21 +1,12 @@
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
+ validates_uniqueness_of :internal_identifier, :scope => :type, :case_sensitive => false
def locate_resources(resource_type)
resource_loader = ErpApp::ApplicationResourceLoader::DesktopOrganizerLoader.new(self)
resource_loader.locate_resources(resource_type)
end