# active_sample **Repository Path**: rubygems/active_sample ## Basic Information - **Project Name**: active_sample - **Description**: No description available - **Primary Language**: Ruby - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-10-14 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Active Sample [![Gem Version](https://badge.fury.io/rb/active_sample.svg)](https://badge.fury.io/rb/active_sample) [![Build Status](https://travis-ci.org/JuanitoFatas/active_sample.svg?branch=master)](https://travis-ci.org/JuanitoFatas/active_sample) Sample functionality for Active Record. ## Usage **Don't use this for large set of data for now (See [#1](https://github.com/JuanitoFatas/active_sample/issues/1)).** ```ruby User.count # => 0 User.sample => nil User.count # => 100 User.sample => # User.sample(2) => #, #]> User.count # => 100 User.sample(200) => # ``` ## Installation Add this line to your application's Gemfile: ```ruby gem "active_sample" ``` And then execute: $ bundle Or install it yourself as: $ gem install active_sample ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/JuanitoFatas/active_sample. ## License The gem is available as open source under the terms of the [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).