Sha256: cd77d2ad8fa0474bfbdec84248aa0ff1d15a522b0998a654132ad8b45e504f16

Contents?: true

Size: 150 Bytes

Versions: 15

Compression:

Stored size: 150 Bytes

Contents

module Cell
  module RailsExtension
    module ConstantFor
      def constant_for(name)
        name.camelize.constantize
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
cells-rails-0.1.6 lib/cell/rails/constant_for.rb
cells-rails-0.1.5 lib/cell/rails/constant_for.rb
cells-rails-0.1.4 lib/cell/rails/constant_for.rb
cells-rails-0.1.3 lib/cell/rails/constant_for.rb
cells-rails-0.1.2 lib/cell/rails/constant_for.rb
cells-rails-0.1.1 lib/cell/rails/constant_for.rb
cells-rails-0.1.0 lib/cell/rails/constant_for.rb
cells-rails-0.0.9 lib/cell/rails/constant_for.rb
cells-rails-0.0.8 lib/cell/rails/constant_for.rb
cells-rails-0.0.7 lib/cell/rails/constant_for.rb
cells-rails-0.0.6 lib/cell/rails/constant_for.rb
cells-rails-0.0.5 lib/cell/rails/constant_for.rb
cells-rails-0.0.4 lib/cell/rails/constant_for.rb
cells-rails-0.0.3 lib/cell/rails/constant_for.rb
cells-rails-0.0.2 lib/cell/rails/constant_for.rb