Skip to content

ActiveRecord does not need to be defined #189

@trunda

Description

@trunda

If someone is using Rails without ActiveRecord (with Sequel for example), this line will fail.

uninitialized constant BootstrapForm::FormBuilder::ActiveRecord

/Users/trunda/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-bootstrap-forms-5e498df2a3e0/lib/bootstrap_form/form_builder.rb:268:in `required_attribute?'
/Users/trunda/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-bootstrap-forms-5e498df2a3e0/lib/bootstrap_form/form_builder.rb:330:in `generate_label'
/Users/trunda/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/bundler/gems/rails-bootstrap-forms-5e498df2a3e0/lib/bootstrap_form/form_builder.rb:181:in `block in form_group'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions