Top Level Namespace

Defined Under Namespace

Modules: ActiveRecord, Atech Classes: InvalidJsonObject, String

Instance Method Summary collapse

Instance Method Details

#digestObject

Extensions the standard String ruby class to provide additional functionality. Enable this in your application using:

  require ‘atech/extensions/string’



6
# File 'lib/atech/extensions/string.rb', line 6

require 'digest'

#ipaddrObject

 You can use the included Atech::NetworkRestrictions::RouteConstraint in your routing files to restrict routes. For example:

constraints Atech::NetworkRestrictions::RouteConstraint do
   namespace :admin do
     resources :accounts
     resources :tickets
   end
end

You can also use this method to query IP addresses whenever required using ‘Atech::NetworkRestrictions.approved_ip?(’123.123.123.123’)‘.



20
# File 'lib/atech/network_restrictions.rb', line 20

require 'ipaddr'