Sha256: 8dbbca5df9f3905aad18d2528c4a3d19042e0018a0c9a13b10d9305b0b760814
Contents?: true
Size: 632 Bytes
Versions: 3
Compression:
Stored size: 632 Bytes
Contents
class Wms include ActiveModel::Validations validates_presence_of :name attr_accessor :name def initialize(name) @name = name end def self.access_filters(ability, user, topic_name, layers) access_filters = {} unless topic_name.blank? layers.each do |layer| access_filter = ability.access_filter("WMS", topic_name, layer) unless access_filter.nil? access_filter.each do |key, value| access_filter[key] = AccessFilter.user_value(user, value) end access_filters.merge!(access_filter) end end end access_filters end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gb_mapfish_appserver-0.9.4 | app/models/wms.rb |
gb_mapfish_appserver-0.9.3 | app/models/wms.rb |
gb_mapfish_appserver-0.9.2 | app/models/wms.rb |