lib/ninsho/interface.rb in ninsho-0.0.1 vs lib/ninsho/interface.rb in ninsho-0.0.2
- old
+ new
@@ -18,10 +18,12 @@
associations.each do |associated_model|
belongs_to associated_model.to_sym
Ninsho.parent_resource_name = Ninsho.ref(associated_model.to_s.classify).get
end
end
-
+
+ # Responsible for creating or find the record with the
+ # omniauth hash
def from_omniauth(omniauth = nil)
Ninsho::Authentication.new(omniauth)
end
end
end