class SmartSeeds::Generator::Text
Public Class Methods
new(column, model)
click to toggle source
Calls superclass method
SmartSeeds::Generator::Base::new
# File lib/smart_seeds/generator/text.rb, line 5 def initialize(column, model) super end
Public Instance Methods
generate_value()
click to toggle source
# File lib/smart_seeds/generator/text.rb, line 9 def generate_value if is_comatible_with_faker? generate_faker_value else ::Faker::Lorem.paragraph end end