module DatastaxRails::Scoping
Module
to hold scoping related functionality
Scopes allow common relation operations to be specified ahead of time allowing for easy, repeatable use elsewhere.
TODO: document some examples here
Public Instance Methods
populate_with_current_scope_attributes()
click to toggle source
# File lib/datastax_rails/scoping.rb, line 148 def populate_with_current_scope_attributes return unless self.class.scope_attributes? self.class.scope_attributes.each do |att, value| send("#{att}=", value) if respond_to?("#{att}=") end end