lib/heimdallr.rb in heimdallr-0.0.2 vs lib/heimdallr.rb in heimdallr-1.0.0.RC2

- old
+ new

@@ -1,17 +1,9 @@ require "active_support" +require "active_support/core_ext/module/delegation" require "active_model" -require "heimdallr/version" - -require "heimdallr/proxy/collection" -require "heimdallr/proxy/record" -require "heimdallr/validator" -require "heimdallr/evaluator" -require "heimdallr/model" -require "heimdallr/resource" - # See {file:README.yard}. module Heimdallr class << self # Allow implicit insecure association access. Consider this code: # @@ -31,16 +23,27 @@ # setting +allow_insecure_associations+ to +true+ will prevent the error # from being raised. # # @return [Boolean] attr_accessor :allow_insecure_associations - self.allow_insecure_associations = false end + self.allow_insecure_associations = false + # {PermissionError} is raised when a security policy prevents # a called operation from being executed. class PermissionError < StandardError; end # {InsecureOperationError} is raised when a potentially unsafe # operation is about to be executed. class InsecureOperationError < StandardError; end -end + + # Heimdallr uses proxies to control access to restricted scopes and collections. + module Proxy; end +end + +require "heimdallr/proxy/collection" +require "heimdallr/proxy/record" +require "heimdallr/validator" +require "heimdallr/evaluator" +require "heimdallr/model" +require "heimdallr/legacy_resource" \ No newline at end of file