method
readonly?
v7.2.3 -
Show latest stable
- Class:
ActiveRecord::Core
readonly?()public
Returns true if the record is read only.
# File activerecord/lib/active_record/core.rb, line 667
def readonly?
@readonly
end Related methods
- Instance methods
- <=>
- ==
- blank?
- clone
- connection_handler
- dup
- encode_with
- eql?
- freeze
- frozen?
- full_inspect
- hash
- init_with
- init_with_attributes
- initialize_dup
- inspect
- present?
- pretty_print
- readonly!
- readonly?
- slice
- strict_loading!
- strict_loading?
- strict_loading_all?
- strict_loading_n_plus_one_only?
- values_at
- Class methods
- application_record_class?
- asynchronous_queries_session
- asynchronous_queries_tracker
- configurations
- configurations=
- connected_to_stack
- connection_class
- connection_class=
- connection_class?
- connection_class_for_self
- connection_handler
- connection_handler=
- current_preventing_writes
- current_role
- current_shard
- destroy_association_async_job
- new
- strict_loading_violation!
- Private methods
-
all_attributes_for_inspect -
attributes_for_inspect -
custom_inspect_method_defined? -
init_internals -
initialize_internals_callback -
inspect_with_attributes -
inspection_filter -
to_ary