Sha256: 176f8c7cca5053d198f9043349a3f111bd4a73bab7ea4d735f4af97a880f6a21

Contents?: true

Size: 177 Bytes

Versions: 2

Compression:

Stored size: 177 Bytes

Contents

# Fabric to get model classes
class ModelFabric

  # Get Class Name
  # Returns a Model Class
  def self.get_class(class_name)
    class_name.classify.safe_constantize
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
social_framework-1.0.1 lib/social_framework/fabrics/model_fabric.rb
social_framework-0.0.3 lib/social_framework/fabrics/model_fabric.rb